mirror of
https://github.com/ansible/awx.git
synced 2026-02-19 04:00:06 -03:30
Reapplied earlier fix so that indent option is used, response is still verified to be JSON.
This commit is contained in:
@@ -81,7 +81,8 @@ class InventoryScript(object):
|
|||||||
url = urlparse.urljoin(url, url_path)
|
url = urlparse.urljoin(url, url_path)
|
||||||
response = requests.get(url, auth=auth)
|
response = requests.get(url, auth=auth)
|
||||||
response.raise_for_status()
|
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):
|
def run(self):
|
||||||
try:
|
try:
|
||||||
|
|||||||
Reference in New Issue
Block a user