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

This commit is contained in:
sorz 2016-09-05 16:24:27 +00:00
parent 5c11527e1b
commit e71b540a61
No known key found for this signature in database
GPG key ID: 0CE8CF55C5C6EE41

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)