mirror of
https://github.com/ansible/awx.git
synced 2026-05-08 09:57:35 -02:30
fix typo in json import error handling
This commit is contained in:
@@ -253,7 +253,7 @@ class ExecutableJsonLoader(BaseLoader):
|
|||||||
proc = subprocess.Popen(cmd, stdout=subprocess.PIPE, stderr=subprocess.PIPE)
|
proc = subprocess.Popen(cmd, stdout=subprocess.PIPE, stderr=subprocess.PIPE)
|
||||||
(stdout, stderr) = proc.communicate()
|
(stdout, stderr) = proc.communicate()
|
||||||
if proc.returncode != 0:
|
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 = {}
|
data = {}
|
||||||
try:
|
try:
|
||||||
data = json.loads(stdout)
|
data = json.loads(stdout)
|
||||||
|
|||||||
Reference in New Issue
Block a user