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:
parent
365f3dc9d9
commit
f2ce2d2199
1 changed files with 2 additions and 2 deletions
|
@ -364,8 +364,8 @@ def main():
|
|||
|
||||
# Perform actual request
|
||||
resp, info = fetch_url(module, url, data=data, method='POST', timeout=timeout)
|
||||
if resp is None or auth['status'] != 200:
|
||||
module.fail_json(msg='Task failed with error %(status)s: %(msg)s' % auth, **result)
|
||||
if resp is None or info['status'] != 200:
|
||||
module.fail_json(msg='Task failed with error %(status)s: %(msg)s' % info, **result)
|
||||
|
||||
# Merge results with previous results
|
||||
rawoutput = resp.read()
|
||||
|
|
Loading…
Reference in a new issue