mirror of
https://github.com/xen-project/xen.git
synced 2026-10-29 02:30:03 +01:00
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:
1 parent
9d12287d14
commit
94f779dfb1
1 file changed
+2
-7
@@ -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()
|
||||
|
||||