ios check_rc: Default to sending text of exception, not the whole exception (#47300)

* Default to sending text of exception, not the whole exception
pull/47567/head
Nathaniel Case 6 years ago committed by GitHub
parent 4420e4c3cd
commit 6a866a5e10
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -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)

Loading…
Cancel
Save