python_client: print as JSON
This commit is contained in:
parent
61c0cf57f2
commit
7a1b607c07
|
@ -57,8 +57,7 @@ class RadianceClient():
|
|||
|
||||
|
||||
if __name__ == '__main__':
|
||||
import pprint
|
||||
|
||||
import json
|
||||
c = RadianceClient(RADIANCE_HOST, RADIANCE_USER, RADIANCE_PASSWORD)
|
||||
r = c.get_leader_stats()
|
||||
pprint.pprint(r)
|
||||
print(json.dumps(r, indent=2))
|
||||
|
|
Loading…
Reference in New Issue