[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-changelog] Remove unnecessary extraction of ssidref from config inside restore -- this



# HG changeset patch
# User emellor@ewan
# Node ID bb113ea176593824bbec2a344b5781c5737ba2e9
# Parent  32f9300618d607a486d7efccccc57d8a08b9deae
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@xxxxxxxxxxxxx>

diff -r 32f9300618d6 -r bb113ea17659 tools/python/xen/xend/XendDomainInfo.py
--- a/tools/python/xen/xend/XendDomainInfo.py   Sun Oct  9 11:14:46 2005
+++ b/tools/python/xen/xend/XendDomainInfo.py   Sun Oct  9 11:16:23 2005
@@ -219,17 +219,12 @@
 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()

_______________________________________________
Xen-changelog mailing list
Xen-changelog@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-changelog


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.