Remove unnecessary extraction of ssidref from config inside restore -- this

is now handled by the construct call, which restore has recently started using.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
This commit is contained in:
emellor@ewan committed 2005-10-09 12:16:23 +01:00
1 parent 9d12287d14
commit 94f779dfb1
1 file changed
+2 -7
+2 -7
View File
@@ -219,17 +219,12 @@ def recreate(xeninfo):
def restore(config):
"""Create a domain and a VM object to do a restore.
@param config: domain configuration
@param config: domain configuration
"""
log.debug("XendDomainInfo.restore(%s)", config)
try:
uuid = sxp.child_value(config, 'uuid')
ssidref = int(sxp.child_value(config, 'ssidref'))
except TypeError, exn:
raise VmError('Invalid ssidref in config: %s' % exn)
uuid = sxp.child_value(config, 'uuid')
vm = XendDomainInfo(uuid, parseConfig(config))
try:
vm.construct()
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.