1
0
mirror of https://github.com/ansible/awx.git synced 2024-11-02 01:21:21 +03:00

store stderr on successful inventory syncs

see: #4823
This commit is contained in:
Ryan Petrello 2017-06-20 16:44:23 -04:00
parent 9a48f16bf2
commit b8e0c91bd4

View File

@ -163,6 +163,8 @@ class AnsibleInventoryLoader(object):
raise RuntimeError('%s failed (rc=%d) with stdout:\n%s\nstderr:\n%s' % ( raise RuntimeError('%s failed (rc=%d) with stdout:\n%s\nstderr:\n%s' % (
self.method, proc.returncode, stdout, stderr)) self.method, proc.returncode, stdout, stderr))
for line in stderr.splitlines():
logger.error(line)
try: try:
data = json.loads(stdout) data = json.loads(stdout)
if not isinstance(data, dict): if not isinstance(data, dict):