WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-changelog

[Xen-changelog] Don't fail readDB on empty dirs.

# HG changeset patch
# User cl349@xxxxxxxxxxxxxxxxxxxx
# Node ID 3eea03342466e50e983ecb49436650b89c8509e5
# Parent  a0399927e1a1884951f79efd458e87300a32015c
Don't fail readDB on empty dirs.
Signed-off-by: Christian Limpach <Christian.Limpach@xxxxxxxxxxxx>

diff -r a0399927e1a1 -r 3eea03342466 tools/python/xen/xend/xenstore/xsobj.py
--- a/tools/python/xen/xend/xenstore/xsobj.py   Tue Sep 13 20:54:41 2005
+++ b/tools/python/xen/xend/xenstore/xsobj.py   Tue Sep 13 21:00:13 2005
@@ -485,9 +485,11 @@
         if self.__db__ is None:
             return
         self.__data__ = self.__db__.getData()
-        for k in self.__db__.ls():
-            n = self.addChild(k)
-            n.readDB()
+        l = self.__db__.ls()
+        if l:
+            for k in l:
+                n = self.addChild(k)
+                n.readDB()
         self.__dirty__ = False
 
     def readChildDB(self, k):

_______________________________________________
Xen-changelog mailing list
Xen-changelog@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-changelog

<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-changelog] Don't fail readDB on empty dirs., Xen patchbot -unstable <=