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

[Xen-changelog] [xen-unstable] Return the stored vcpus_params if the domain is not running.



# HG changeset patch
# User Ewan Mellor <ewan@xxxxxxxxxxxxx>
# Date 1170353680 0
# Node ID b32a44bfb10ccd23cd6ac71883cea65fb4c7b1a0
# Parent  cc36013f77851f46027bca0e419c8410f4742210
Return the stored vcpus_params if the domain is not running.

Signed-off-by: Ewan Mellor <ewan@xxxxxxxxxxxxx>
---
 tools/python/xen/xend/XendDomainInfo.py |    2 +-
 1 files changed, 1 insertion(+), 1 deletion(-)

diff -r cc36013f7785 -r b32a44bfb10c tools/python/xen/xend/XendDomainInfo.py
--- a/tools/python/xen/xend/XendDomainInfo.py   Thu Feb 01 17:52:08 2007 +0000
+++ b/tools/python/xen/xend/XendDomainInfo.py   Thu Feb 01 18:14:40 2007 +0000
@@ -1978,7 +1978,7 @@ class XendDomainInfo:
             return 'unknown'
     def get_vcpus_params(self):
         if self.getDomid() is None:
-            return {}
+            return self.info['vcpus_params']
 
         retval = xc.sched_credit_domain_get(self.getDomid())
         return retval

_______________________________________________
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®.