eos handles error gracefully when maximum sessions is reached (#41242)

* to resolve #36977

* to resolve #36977

* fix review comment
This commit is contained in:
Sumit Jaiswal
2018-06-08 10:29:42 +05:30
committed by GitHub
parent e3a073fdb9
commit 91ecb87b73
2 changed files with 3 additions and 2 deletions

View File

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