1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2024-09-14 20:13:21 +02:00

Merge pull request #14906 from devananda/fix-shell-for-junos

Send empty command before recv
This commit is contained in:
Peter Sprygada 2016-03-11 22:49:28 -05:00
commit c55d1c55af

View file

@ -109,6 +109,7 @@ class Shell(object):
self.shell = self.ssh.invoke_shell() self.shell = self.ssh.invoke_shell()
self.shell.settimeout(10) self.shell.settimeout(10)
self.shell.sendall("\n")
self.receive() self.receive()
def strip(self, data): def strip(self, data):