aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authordan@guaranine.beaverton.ibm.com <dan@guaranine.beaverton.ibm.com>2005-12-02 15:57:24 +0000
committerdan@guaranine.beaverton.ibm.com <dan@guaranine.beaverton.ibm.com>2005-12-02 15:57:24 +0000
commit60d99f7d06400e3e86a9ef18a1feaf5f671de5b7 (patch)
tree62da618f3826449e5a5d6a877fed8efeb40a4d1c
parent9b08b0371d509d9465bacb4dd14fc99b01183d02 (diff)
downloadxen-60d99f7d06400e3e86a9ef18a1feaf5f671de5b7.tar.gz
xen-60d99f7d06400e3e86a9ef18a1feaf5f671de5b7.tar.bz2
xen-60d99f7d06400e3e86a9ef18a1feaf5f671de5b7.zip
Make "xm list --long" generate device configuration data from xenstore state
instead of internal xend state. Signed-off-by: Dan Smith <danms@us.ibm.com>
-rw-r--r--tools/python/xen/xend/XendDomainInfo.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/tools/python/xen/xend/XendDomainInfo.py b/tools/python/xen/xend/XendDomainInfo.py
index 9c9d23b436..0016f95893 100644
--- a/tools/python/xen/xend/XendDomainInfo.py
+++ b/tools/python/xen/xend/XendDomainInfo.py
@@ -1016,9 +1016,9 @@ class XendDomainInfo:
if self.infoIsSet('image'):
sxpr.append(['image', self.info['image']])
- if self.infoIsSet('device'):
- for (_, c) in self.info['device']:
- sxpr.append(['device', c])
+ for cls in controllerClasses:
+ for config in self.getDeviceConfigurations(cls):
+ sxpr.append(['device', config])
def stateChar(name):
if name in self.info: