pushing for debugging

This commit is contained in:
Gabriele Perrone
2020-03-04 15:13:07 +01:00
parent ee7300f102
commit 9afdaf0244
8 changed files with 1352 additions and 1347 deletions
+3 -2
View File
@@ -3,7 +3,8 @@
#-----------------------------------------------------------
import pexpect # pexpect
import logging
import time # sleep
import re
#-----------------------------------------------------------
# Class Declaration
#-----------------------------------------------------------
@@ -69,7 +70,7 @@ class SSHConnection():
logging.debug('\u001B[1;37;41m Unexpected EOF \u001B[0m')
logging.debug('Expected Line : ' + expectedline)
logging.debug(str(self.ssh.before))
sys.exit(self.sshresponse)
sys.exit(self.sshresponse)
elif self.sshresponse == 2:
logging.debug('\u001B[1;37;41m Unexpected TIMEOUT \u001B[0m')
logging.debug('Expected Line : ' + expectedline)