1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2024-09-14 20:13:21 +02:00

imc_xml: Use the correct response in error message (#26435)

This commit is contained in:
Dag Wieers 2017-07-05 17:12:21 +02:00 committed by John R Barker
parent 365f3dc9d9
commit f2ce2d2199

View file

@ -364,8 +364,8 @@ def main():
# Perform actual request # Perform actual request
resp, info = fetch_url(module, url, data=data, method='POST', timeout=timeout) resp, info = fetch_url(module, url, data=data, method='POST', timeout=timeout)
if resp is None or auth['status'] != 200: if resp is None or info['status'] != 200:
module.fail_json(msg='Task failed with error %(status)s: %(msg)s' % auth, **result) module.fail_json(msg='Task failed with error %(status)s: %(msg)s' % info, **result)
# Merge results with previous results # Merge results with previous results
rawoutput = resp.read() rawoutput = resp.read()