fix pep8
This commit is contained in:
1 parent
7f87df20c2
commit
55932b048e
1 file changed
+3
-2
@@ -98,8 +98,9 @@ class ArubaDeviceScanner(object):
|
||||
import pexpect
|
||||
connect = "ssh {}@{}"
|
||||
ssh = pexpect.spawn(connect.format(self.username, self.host))
|
||||
query = ssh.expect(['password:', pexpect.TIMEOUT, pexpect.EOF, 'continue connecting (yes/no)?',
|
||||
'Host key verification failed.', 'Connection refused', 'Connection timed out'], timeout=120)
|
||||
query = ssh.expect(['password:', pexpect.TIMEOUT, pexpect.EOF,
|
||||
'continue connecting (yes/no)?', 'Host key verification failed.',
|
||||
'Connection refused', 'Connection timed out'], timeout=120)
|
||||
if query == 1:
|
||||
_LOGGER.error("Timeout")
|
||||
return
|
||||
|
||||
Reference in new issue
Block a user