mirror of
https://github.com/ansible/awx.git
synced 2026-01-12 02:19:58 -03:30
Merge pull request #6652 from ryanpetrello/fix-4823
store stderr on successful inventory syncs
This commit is contained in:
commit
79a6cabbbc
@ -163,6 +163,8 @@ class AnsibleInventoryLoader(object):
|
||||
raise RuntimeError('%s failed (rc=%d) with stdout:\n%s\nstderr:\n%s' % (
|
||||
self.method, proc.returncode, stdout, stderr))
|
||||
|
||||
for line in stderr.splitlines():
|
||||
logger.error(line)
|
||||
try:
|
||||
data = json.loads(stdout)
|
||||
if not isinstance(data, dict):
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user