WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-changelog

[Xen-changelog] Remove unnecessary extraction of ssidref from config ins

To: xen-changelog@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-changelog] Remove unnecessary extraction of ssidref from config inside restore -- this
From: Xen patchbot -unstable <patchbot-unstable@xxxxxxxxxxxxxxxxxxx>
Date: Sun, 09 Oct 2005 11:32:11 +0000
Delivery-date: Sun, 09 Oct 2005 11:29:44 +0000
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-changelog-request@lists.xensource.com?subject=help>
List-id: BK change log <xen-changelog.lists.xensource.com>
List-post: <mailto:xen-changelog@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-changelog>, <mailto:xen-changelog-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-changelog>, <mailto:xen-changelog-request@lists.xensource.com?subject=unsubscribe>
Reply-to: xen-devel@xxxxxxxxxxxxxxxxxxx
Sender: xen-changelog-bounces@xxxxxxxxxxxxxxxxxxx
# 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

<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-changelog] Remove unnecessary extraction of ssidref from config inside restore -- this, Xen patchbot -unstable <=