ia64/xen-unstable
changeset 8203:b77ceb2481b3
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>
instead of internal xend state.
Signed-off-by: Dan Smith <danms@us.ibm.com>
author | dan@guaranine.beaverton.ibm.com |
---|---|
date | Fri Dec 02 15:57:24 2005 +0000 (2005-12-02) |
parents | a9c35cd7e559 |
children | 114946d9937f |
files | tools/python/xen/xend/XendDomainInfo.py |
line diff
1.1 --- a/tools/python/xen/xend/XendDomainInfo.py Fri Dec 02 15:52:47 2005 +0000 1.2 +++ b/tools/python/xen/xend/XendDomainInfo.py Fri Dec 02 15:57:24 2005 +0000 1.3 @@ -1016,9 +1016,9 @@ class XendDomainInfo: 1.4 if self.infoIsSet('image'): 1.5 sxpr.append(['image', self.info['image']]) 1.6 1.7 - if self.infoIsSet('device'): 1.8 - for (_, c) in self.info['device']: 1.9 - sxpr.append(['device', c]) 1.10 + for cls in controllerClasses: 1.11 + for config in self.getDeviceConfigurations(cls): 1.12 + sxpr.append(['device', config]) 1.13 1.14 def stateChar(name): 1.15 if name in self.info: