diff --git a/awx/scripts/inventory.py b/awx/scripts/inventory.py index 79dac87725..ae58ba9b85 100755 --- a/awx/scripts/inventory.py +++ b/awx/scripts/inventory.py @@ -81,7 +81,8 @@ class InventoryScript(object): url = urlparse.urljoin(url, url_path) response = requests.get(url, auth=auth) response.raise_for_status() - sys.stdout.write(response.content) + sys.stdout.write(json.dumps(json.loads(response.content), + indent=self.indent) + '\n') def run(self): try: