Merge pull request #6652 from ryanpetrello/fix-4823

store stderr on successful inventory syncs
This commit is contained in:
Ryan Petrello
2017-06-21 10:35:29 -04:00
committed by GitHub

View File

@@ -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):