This commit is contained in:
iap10@freefall.cl.cam.ac.uk committed 2005-08-17 12:30:04 +00:00
commit 4a58a25381
2 files changed
+4 -3

No files matched your search

+1 -2
View File
@@ -320,8 +320,7 @@ class XendDomain:
@param vmconfig: vm configuration
"""
config = sxp.child_value(vmconfig, 'config')
uuid = sxp.child_value(vmconfig, 'uuid')
dominfo = XendDomainInfo.restore(self.dbmap, config, uuid=uuid)
dominfo = XendDomainInfo.restore(self.dbmap, config)
return dominfo
def domain_restore(self, src, progress=False):
+3 -1
View File
@@ -195,13 +195,15 @@ class XendDomainInfo:
recreate = classmethod(recreate)
def restore(cls, parentdb, config, uuid):
def restore(cls, parentdb, config, uuid=None):
"""Create a domain and a VM object to do a restore.
@param parentdb: parent db
@param config: domain configuration
@param uuid: uuid to use
"""
if not uuid:
uuid = getUuid()
db = parentdb.addChild(uuid)
vm = cls(db)
ssidref = int(sxp.child_value(config, 'ssidref'))
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.