Fix method on manager's add command (#578) (#614)

This commit is contained in:
Shell Chen 2016-10-12 00:31:41 +11:00 committed by mengskysama
parent 4f28f7c8e4
commit 5a05312189
1 changed files with 2 additions and 0 deletions

View File

@ -141,6 +141,8 @@ class Manager(object):
command, config_json = parts
try:
config = shell.parse_json_in_str(config_json)
if 'method' in config:
config['method'] = common.to_str(config['method'])
return command, config
except Exception as e:
logging.error(e)