Change in vdsm[master]: pretty print json in vdsm persistancy files
ibarkan at redhat.com
ibarkan at redhat.com
Mon Nov 10 11:51:43 UTC 2014
Ido Barkan has uploaded a new change for review.
Change subject: pretty print json in vdsm persistancy files
......................................................................
pretty print json in vdsm persistancy files
Change-Id: Ib4f3b55e76d4dac523a696c4a55734116761bdc2
Signed-off-by: ibarkan <ibarkan at redhat.com>
---
M lib/vdsm/netconfpersistence.py
1 file changed, 1 insertion(+), 1 deletion(-)
git pull ssh://gerrit.ovirt.org:29418/vdsm refs/changes/90/34990/1
diff --git a/lib/vdsm/netconfpersistence.py b/lib/vdsm/netconfpersistence.py
index 4dd6b8e..f0aac38 100644
--- a/lib/vdsm/netconfpersistence.py
+++ b/lib/vdsm/netconfpersistence.py
@@ -146,7 +146,7 @@
if errno.EEXIST != ose.errno:
raise
with open(path, 'w') as configurationFile:
- json.dump(config, configurationFile)
+ json.dump(config, configurationFile, indent=4)
@staticmethod
def _removeConfig(path):
--
To view, visit http://gerrit.ovirt.org/34990
To unsubscribe, visit http://gerrit.ovirt.org/settings
Gerrit-MessageType: newchange
Gerrit-Change-Id: Ib4f3b55e76d4dac523a696c4a55734116761bdc2
Gerrit-PatchSet: 1
Gerrit-Project: vdsm
Gerrit-Branch: master
Gerrit-Owner: Ido Barkan <ibarkan at redhat.com>
More information about the vdsm-patches
mailing list