mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-07-22 12:50:22 -07:00
(cherry picked from commit 63012eef82
)
Co-authored-by: DasSkelett <dasskelett@gmail.com>
This commit is contained in:
parent
e19dffbf29
commit
57bfbdc407
2 changed files with 3 additions and 1 deletions
|
@ -255,7 +255,7 @@ def main():
|
|||
has_changed = True
|
||||
|
||||
except Exception as ex:
|
||||
module.fail_json(msg=ex.message)
|
||||
module.fail_json(msg=str(ex))
|
||||
|
||||
module.exit_json(changed=has_changed, result={"records": [record_data(r) for r in all_records]})
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue