[#3129|Console] Fix unable to use connect command from terminal

The parsed_cmd passed to do_command was an argparse Namespace object
which needed no further parsing so use exec_command instead.
This commit is contained in:
Calum Lind 2017-11-18 23:46:35 +00:00
parent 2644169376
commit 07a87fa15a

View File

@ -205,7 +205,7 @@ Please use commands from the command line, e.g.:\n
d = None
if not self.interactive and options.parsed_cmds[0].command == 'connect':
d = commander.do_command(options.parsed_cmds.pop(0))
d = commander.exec_command(options.parsed_cmds.pop(0))
else:
log.info('connect: host=%s, port=%s, username=%s, password=%s',
options.daemon_addr, options.daemon_port, options.daemon_user, options.daemon_pass)