Fix inventory script json bug.

This commit is contained in:
Chris Church 2013-06-27 15:40:27 -04:00
parent e22fbe2de2
commit ead71569bf

View File

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