Antoni Segura Puimedon has uploaded a new change for review.

Change subject: Make vdsClient prettyprint dictionaries.
......................................................................

Make vdsClient prettyprint dictionaries.

This helps a lot reading getVdsCaps.

Change-Id: I2553f4d8bfd85692b5204c67db8eca85517b1041
Signed-off-by: Antoni S. Puimedon <[email protected]>
---
M vdsm_cli/vdsClient.py
1 file changed, 3 insertions(+), 1 deletion(-)


  git pull ssh://gerrit.ovirt.org:29418/vdsm refs/changes/79/11979/1

diff --git a/vdsm_cli/vdsClient.py b/vdsm_cli/vdsClient.py
index fefc209..fabee11 100644
--- a/vdsm_cli/vdsClient.py
+++ b/vdsm_cli/vdsClient.py
@@ -111,7 +111,9 @@
     keys = dict.keys()
     keys.sort()
     for element in keys:
-        print "\t%s = %s" % (element, dict[element])
+        representation = pp.pformat(
+            dict[element]).replace('\n', '\n\t' + ' ' * len(element + ' = '))
+        print "\t%s = %s" % (element, representation)
 
 
 def printStats(list):


--
To view, visit http://gerrit.ovirt.org/11979
To unsubscribe, visit http://gerrit.ovirt.org/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: I2553f4d8bfd85692b5204c67db8eca85517b1041
Gerrit-PatchSet: 1
Gerrit-Project: vdsm
Gerrit-Branch: master
Gerrit-Owner: Antoni Segura Puimedon <[email protected]>
_______________________________________________
vdsm-patches mailing list
[email protected]
https://lists.fedorahosted.org/mailman/listinfo/vdsm-patches

Reply via email to