bug fix
This commit is contained in:
		| @@ -2259,7 +2259,7 @@ tasks: | ||||
|                 passwords = self._passtx(self.password) | ||||
|             else: | ||||
|                 passwords = [] | ||||
|             expects = ['yes/no', 'refused', 'supported', 'cipher', 'sage', 'timeout', 'unavailable', 'closed', '[p|P]assword:|[u|U]sername:', r'>$|#$|\$$|>.$|#.$|\$.$', 'suspend', pexpect.EOF, pexpect.TIMEOUT, "No route to host", "resolve hostname", "no matching host key"] | ||||
|             expects = ['yes/no', 'refused', 'supported', 'cipher', 'sagenotinuse', 'timeout', 'unavailable', 'closed', '[p|P]assword:|[u|U]sername:', r'>$|#$|\$$|>.$|#.$|\$.$', 'suspend', pexpect.EOF, pexpect.TIMEOUT, "No route to host", "resolve hostname", "no matching host key"] | ||||
|         elif self.protocol == "telnet": | ||||
|             cmd = "telnet " + self.host | ||||
|             if self.port != '': | ||||
| @@ -2272,7 +2272,7 @@ tasks: | ||||
|                 passwords = self._passtx(self.password) | ||||
|             else: | ||||
|                 passwords = [] | ||||
|             expects = ['[u|U]sername:', 'refused', 'supported', 'cipher', 'sage', 'timeout', 'unavailable', 'closed', '[p|P]assword:', r'>$|#$|\$$|>.$|#.$|\$.$', 'suspend', pexpect.EOF, pexpect.TIMEOUT, "No route to host", "resolve hostname", "no matching host key"] | ||||
|             expects = ['[u|U]sername:', 'refused', 'supported', 'cipher', 'sagenotinuse', 'timeout', 'unavailable', 'closed', '[p|P]assword:', r'>$|#$|\$$|>.$|#.$|\$.$', 'suspend', pexpect.EOF, pexpect.TIMEOUT, "No route to host", "resolve hostname", "no matching host key"] | ||||
|         else: | ||||
|             raise ValueError("Invalid protocol: " + self.protocol) | ||||
|         child = pexpect.spawn(cmd) | ||||
|   | ||||
		Reference in New Issue
	
	Block a user