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:
parent
dfe2cf5496
commit
24bf07c892
|
@ -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"])
|
||||
|
||||
|
|
Loading…
Reference in New Issue