xend: Show "bootable" information only once in 'xm list --long'

Signed-off-by: Masaki Kanno <kanno.masaki@jp.fujitsu.com>
This commit is contained in:
Keir Fraser committed 2009-06-16 10:55:36 +01:00
1 parent 71489b7cd2
commit 3e71ff4418
1 file changed
+3 -4
+3 -4
View File
@@ -1100,12 +1100,11 @@ class XendConfig(dict):
configs = controller.configurations(txn)
for config in configs:
if sxp.name(config) in ('vbd', 'tap'):
# The bootable flag is never written to the
# store as part of the device config.
dev_uuid = sxp.child_value(config, 'uuid')
dev_type, dev_cfg = self['devices'][dev_uuid]
is_bootable = dev_cfg.get('bootable', 0)
config.append(['bootable', int(is_bootable)])
if sxp.child_value(config, 'bootable', None) is None:
is_bootable = dev_cfg.get('bootable', 0)
config.append(['bootable', int(is_bootable)])
config.append(['VDI', dev_cfg.get('VDI', '')])
sxpr.append(['device', config])
Reference in new issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.