Fix --output=json so that it prints out JSON

The program was actually printing out a Python map variable
instead.

Change-Id: I6802bdac30a915f9643164fe6bbb5136844900e7
This commit is contained in:
Mark Hamzy 2016-11-01 14:00:34 -05:00
parent dfe2cf5496
commit 24bf07c892
1 changed files with 2 additions and 1 deletions

View File

@ -382,7 +382,8 @@ if __name__ == "__main__":
json_ret = json.loads(ret)
if output == "json":
print(json_ret)
# Print the already JSON encoded reply sent from the server
print(ret)
elif output == "result":
print(json_ret["result"])