My Oracle Support Banner

EM13C : EMCli script emcli_get_targets.py fails with UnboundLocalError: local variable 'json_str_corrected' referenced before assignment (Doc ID 2522198.1)

Last updated on OCTOBER 14, 2019

Applies to:

Enterprise Manager Base Platform - Version 13.1.0.0.0 and later
Information in this document applies to any platform.

Symptoms

In Enterprise Manager (EM) Cloud Control, trying to run emcli script "emcli_get_targets.py" to retrieve all targets and prints their names fails with below error,

File "<path>\emcli_home\emcli_get_targets.py", line 21, in
  targets_array = get_targets().out()['data']
  File "", line 3, in get_targets
  File "<path>\emcli_home\emsh.jar\jython_lib\emcli\util.py", line 87, in do_verb_processing
  File "<path>\emcli_home\emsh.jar\jython_lib\emcli\response.py", line 12, in __init__
  File "<path>\emcli_home\emsh.jar\jython_lib\emcli\util.py", line 118, in loadJson
UnboundLocalError: local variable 'json_str_corrected' referenced before assignment

 

Cause

To view full details, sign in with your My Oracle Support account.

Don't have a My Oracle Support account? Click to get started!


In this Document
Symptoms
Cause
Solution
References


My Oracle Support provides customers with access to over a million knowledge articles and a vibrant support community of peers and Oracle experts.