mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-04-27 21:01:27 -07:00
Do not use str() on exceptions (#46950)
This commit is contained in:
parent
2436aa1a4e
commit
a80c25cbd9
30 changed files with 76 additions and 66 deletions
|
@ -235,7 +235,7 @@ class StrategyModule(StrategyBase):
|
|||
except AnsibleError as e:
|
||||
for host in included_file._hosts:
|
||||
iterator.mark_host_failed(host)
|
||||
display.warning(str(e))
|
||||
display.warning(to_text(e))
|
||||
continue
|
||||
|
||||
for new_block in new_blocks:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue