1
0

return python objects from commands, and display them as json

This commit is contained in:
thomasv
2013-02-26 17:57:48 +01:00
parent 8a14679530
commit 2e9c2c1f96
5 changed files with 50 additions and 29 deletions

View File

@@ -488,7 +488,9 @@ if __name__ == '__main__':
func = eval('cmd_runner.' + cmd)
if password:
cmd_runner.password = password
func(*args[1:])
result = func(*args[1:])
util.print_json(result)
if cmd not in offline_commands and not options.offline: