mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-06-10 02:09:11 -07:00
roll up of eos fixes (#21629)
* fixes error where eos would close the cli shell * fixes network_cli connection plugin to check before calling open_shell() * fixes json commands being sent over eapi
This commit is contained in:
parent
76c9ad9dfc
commit
d5f7a0181b
4 changed files with 23 additions and 19 deletions
|
@ -234,7 +234,7 @@ class Connection(_Connection):
|
|||
return (0, self._history, '')
|
||||
|
||||
try:
|
||||
if self._shell is None:
|
||||
if not self._connected:
|
||||
self.open_shell()
|
||||
except AnsibleConnectionFailure as exc:
|
||||
return (1, '', str(exc))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue