mirror of
https://github.com/ansible/awx.git
synced 2026-01-11 10:00:01 -03:30
Fixing undefined variabe
This commit is contained in:
parent
34c23caed3
commit
a9c16a6c90
@ -125,7 +125,7 @@ class LookupModule(LookupBase):
|
||||
raise AnsibleError("Unclear response from API: {0}".format(response))
|
||||
|
||||
if response['status_code'] != 200:
|
||||
raise AnsibleError("Failed to query the API: {0}".format(return_data.get('detail', return_data)))
|
||||
raise AnsibleError("Failed to query the API: {0}".format(response['json'].get('detail', response['json'])))
|
||||
|
||||
return_data = response['json']
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user