mirror of
https://github.com/ansible/awx.git
synced 2026-01-11 10:00:01 -03:30
fix typo in json import error handling
This commit is contained in:
parent
e161efdd67
commit
f78eb15e41
@ -253,7 +253,7 @@ class ExecutableJsonLoader(BaseLoader):
|
||||
proc = subprocess.Popen(cmd, stdout=subprocess.PIPE, stderr=subprocess.PIPE)
|
||||
(stdout, stderr) = proc.communicate()
|
||||
if proc.returncode != 0:
|
||||
raise ImportException("%s list failed %s with output: %s" % (src, stderr, proc.returncode))
|
||||
raise ImportException("%s list failed %s with output: %s" % (cmd, stderr, proc.returncode))
|
||||
data = {}
|
||||
try:
|
||||
data = json.loads(stdout)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user