From b8e0c91bd4cf31396755fd88e2106f77b801e87e Mon Sep 17 00:00:00 2001 From: Ryan Petrello Date: Tue, 20 Jun 2017 16:44:23 -0400 Subject: [PATCH] store stderr on successful inventory syncs see: #4823 --- awx/main/management/commands/inventory_import.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/awx/main/management/commands/inventory_import.py b/awx/main/management/commands/inventory_import.py index b088877e8e..7ea3ae2806 100644 --- a/awx/main/management/commands/inventory_import.py +++ b/awx/main/management/commands/inventory_import.py @@ -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):