mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-02 11:22:47 +00: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:
3
changelogs/fragments/47300-ios-check_rc.yaml
Normal file
3
changelogs/fragments/47300-ios-check_rc.yaml
Normal file
@@ -0,0 +1,3 @@
|
||||
---
|
||||
bugfixes:
|
||||
- Fix issue getting output from failed ios commands when ``check_rc=False``
|
||||
@@ -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)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user