bug fixes
This commit is contained in:
		| @@ -1581,7 +1581,7 @@ __pdoc__ = { | ||||
|         else: | ||||
|             node["options"] = defaults["options"] | ||||
|         if edit["logs"]: | ||||
|             questions.append(inquirer.Text("logs", message="Pick logging path/file ", validate=self._default_validation, default=defaults["logs"])) | ||||
|             questions.append(inquirer.Text("logs", message="Pick logging path/file ",  validate=self._default_validation, default=defaults["logs"].replace("{","{{").replace("}","}}"))) | ||||
|         else: | ||||
|             node["logs"] = defaults["logs"] | ||||
|         if edit["user"]: | ||||
| @@ -1641,7 +1641,7 @@ __pdoc__ = { | ||||
|         else: | ||||
|             profile["options"] = defaults["options"] | ||||
|         if edit["logs"]: | ||||
|             questions.append(inquirer.Text("logs", message="Pick logging path/file ", default=defaults["logs"])) | ||||
|             questions.append(inquirer.Text("logs", message="Pick logging path/file ", default=defaults["logs"].replace("{","{{").replace("}","}}"))) | ||||
|         else: | ||||
|             profile["logs"] = defaults["logs"] | ||||
|         if edit["user"]: | ||||
| @@ -2404,7 +2404,7 @@ tasks: | ||||
|                 passwords = self._passtx(self.password) | ||||
|             else: | ||||
|                 passwords = [] | ||||
|             expects = ['yes/no', 'refused', 'supported', 'cipher', 'ssh-keygen.*\"', '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', 'ssh-keygen.*\"', 'timeout', 'unavailable', 'closed', '[p|P]assword:|[u|U]sername:', r'>$|#$|\$$|>.$|#.$|\$.$', 'suspend', pexpect.EOF, pexpect.TIMEOUT, "No route to host", "resolve hostname", "no matching"] | ||||
|         elif self.protocol == "telnet": | ||||
|             cmd = "telnet " + self.host | ||||
|             if self.port != '': | ||||
| @@ -2417,7 +2417,7 @@ tasks: | ||||
|                 passwords = self._passtx(self.password) | ||||
|             else: | ||||
|                 passwords = [] | ||||
|             expects = ['[u|U]sername:', 'refused', 'supported', 'cipher', 'ssh-keygen.*\"', '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', 'ssh-keygen.*\"', 'timeout', 'unavailable', 'closed', '[p|P]assword:', r'>$|#$|\$$|>.$|#.$|\$.$', 'suspend', pexpect.EOF, pexpect.TIMEOUT, "No route to host", "resolve hostname", "no matching"] | ||||
|         else: | ||||
|             raise ValueError("Invalid protocol: " + self.protocol) | ||||
|         attempts = 1 | ||||
|   | ||||
		Reference in New Issue
	
	Block a user