mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-10-09 18:04:02 -07:00
ios check_rc: Default to sending text of exception, not the whole exception (#47300)
* Default to sending text of exception, not the whole exception
This commit is contained in:
parent
4420e4c3cd
commit
6a866a5e10
2 changed files with 4 additions and 1 deletions
|
@ -291,7 +291,7 @@ class Cliconf(CliconfBase):
|
|||
except AnsibleConnectionFailure as e:
|
||||
if check_rc:
|
||||
raise
|
||||
out = getattr(e, 'err', e)
|
||||
out = getattr(e, 'err', to_text(e))
|
||||
|
||||
responses.append(out)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue