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:
Peter Sprygada 2017-02-19 08:46:14 -05:00 committed by GitHub
parent 76c9ad9dfc
commit d5f7a0181b
4 changed files with 23 additions and 19 deletions

View file

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