mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-07 05:42:50 +00:00
eos handles error gracefully when maximum sessions is reached (#41242)
* to resolve #36977 * to resolve #36977 * fix review comment
This commit is contained in:
@@ -205,7 +205,7 @@ class Cli:
|
||||
return conn.load_config(commands, commit, replace)
|
||||
except ConnectionError as exc:
|
||||
message = getattr(exc, 'err', exc)
|
||||
self._module.fail_json(msg="Error on executing commands %s" % commands, data=to_text(message, errors='surrogate_then_replace'))
|
||||
self._module.fail_json(msg="%s" % message, data=to_text(message, errors='surrogate_then_replace'))
|
||||
|
||||
|
||||
class Eapi:
|
||||
|
||||
Reference in New Issue
Block a user