[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [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
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |