Change in vdsm[master]: configfile: sort dict items inserted to config files for con...

mtayer at redhat.com mtayer at redhat.com
Sun Aug 10 11:29:10 UTC 2014


mooli tayer has uploaded a new change for review.

Change subject: configfile: sort dict items inserted to config files for consistency.
......................................................................

configfile: sort dict items inserted to config files for consistency.

Change-Id: I7705b046d993cc08eac6b09a6ebba34bd8986620
Signed-off-by: Mooli Tayer <mtayer at redhat.com>
---
M lib/vdsm/tool/configfile.py
1 file changed, 1 insertion(+), 1 deletion(-)


  git pull ssh://gerrit.ovirt.org:29418/vdsm refs/changes/89/31289/1

diff --git a/lib/vdsm/tool/configfile.py b/lib/vdsm/tool/configfile.py
index 0a3a914..a966599 100644
--- a/lib/vdsm/tool/configfile.py
+++ b/lib/vdsm/tool/configfile.py
@@ -159,7 +159,7 @@
 
     def _writeEntries(self, f, oldentries):
         f.write(self._start())
-        for key, val in self._entries.iteritems():
+        for key, val in sorted(self._entries.items()):
             if key not in oldentries:
                 f.write("{k}={v}\n".format(k=key, v=val))
         f.write(self._end())


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

Gerrit-MessageType: newchange
Gerrit-Change-Id: I7705b046d993cc08eac6b09a6ebba34bd8986620
Gerrit-PatchSet: 1
Gerrit-Project: vdsm
Gerrit-Branch: master
Gerrit-Owner: mooli tayer <mtayer at redhat.com>


More information about the vdsm-patches mailing list