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