mirror of
https://github.com/ansible/awx.git
synced 2026-03-05 02:31:03 -03:30
Fix syntax error
This commit is contained in:
@@ -114,7 +114,7 @@ def read_tower_inventory(tower_host, tower_user, tower_pass, inventory, license_
|
|||||||
return response.json()
|
return response.json()
|
||||||
except (ValueError, TypeError) as e:
|
except (ValueError, TypeError) as e:
|
||||||
# If the JSON parse fails, print the ValueError
|
# If the JSON parse fails, print the ValueError
|
||||||
raise RuntimeError("Failed to parse json from host: {}".format(e)
|
raise RuntimeError("Failed to parse json from host: {}".format(e))
|
||||||
except requests.ConnectionError as e:
|
except requests.ConnectionError as e:
|
||||||
raise RuntimeError("Connection to remote host failed: {}".format(e))
|
raise RuntimeError("Connection to remote host failed: {}".format(e))
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user