mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
Easier to debug (#30675)
This commit is contained in:
parent
2e1c889275
commit
dc86f6f6d5
1 changed files with 1 additions and 1 deletions
|
@ -489,7 +489,7 @@ def main():
|
|||
u_content = to_text(content, encoding=content_encoding)
|
||||
|
||||
if resp['status'] not in status_code:
|
||||
uresp['msg'] = 'Status code was not %s: %s' % (status_code, uresp.get('msg', ''))
|
||||
uresp['msg'] = 'Status code was %s and not %s: %s' % (resp['status'], status_code, uresp.get('msg', ''))
|
||||
module.fail_json(content=u_content, **uresp)
|
||||
elif return_content:
|
||||
module.exit_json(changed=changed, content=u_content, **uresp)
|
||||
|
|
Loading…
Reference in a new issue