Move name back into main domain dir.

Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
This commit is contained in:
cl349@firebug.cl.cam.ac.uk committed 2005-09-14 15:25:28 +00:00
1 parent 005cfd74fc
commit acfc3f80c0
1 file changed
+5 -2
+5 -2
View File
@@ -149,6 +149,7 @@ class XendDomainInfo:
path = "/".join(db.getPath().split("/")[0:-2])
vm = cls(uuid, path, db)
vm.setDomid(domid)
vm.name = vm.readStore("name")
try:
db.readDB()
except: pass
@@ -202,7 +203,6 @@ class XendDomainInfo:
restore = classmethod(restore)
__exports__ = [
DBVar('name', ty='str'),
DBVar('config', ty='sxpr'),
DBVar('start_time', ty='float'),
DBVar('state', ty='str'),
@@ -264,6 +264,9 @@ class XendDomainInfo:
xstransact.Write(self.path, "uuid", self.uuid)
def readStore(self, key):
return xstransact.Read(self.path, key)
def setDB(self, db):
self.db = db
@@ -292,7 +295,7 @@ class XendDomainInfo:
def setName(self, name):
self.name = name
self.db.name = self.name
xstransact.Write(self.path, "name", name)
def getName(self):
return self.name
Reference in new issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.