So I am using plumbum to execute the ssh command against gerrit, but I cant seem to be able to pull the output in as a json dictionary.
eg: ssh abc.xyz.com gerrit query --patch-sets --format=json commit:12345678
The output of this also dumps the below lines: type: abcd rowCount: integer runTimeMilliseconds: 123 moreChanges: ABCD
I feel this is also another dictionary.
So, is there anyway to pull the output of the ssh command into a python dictionary?
Ref: https://review.openstack.org/Documentation/cmd-query.html
Here is how I got it to work:
Is there a better solution?