[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Xen-changelog] [xen-unstable] xend: Show "bootable" information only once in 'xm list --long'
# HG changeset patch # User Keir Fraser <keir.fraser@xxxxxxxxxx> # Date 1245146136 -3600 # Node ID 376c0749586e7004e8091500a320bd1e96c79c7f # Parent 465950bbdf46d720d61575f0ce33d18b5e8cc506 xend: Show "bootable" information only once in 'xm list --long' Signed-off-by: Masaki Kanno <kanno.masaki@xxxxxxxxxxxxxx> --- tools/python/xen/xend/XendConfig.py | 7 +++---- 1 files changed, 3 insertions(+), 4 deletions(-) diff -r 465950bbdf46 -r 376c0749586e tools/python/xen/xend/XendConfig.py --- a/tools/python/xen/xend/XendConfig.py Tue Jun 16 10:54:10 2009 +0100 +++ b/tools/python/xen/xend/XendConfig.py Tue Jun 16 10:55:36 2009 +0100 @@ -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]) _______________________________________________ Xen-changelog mailing list Xen-changelog@xxxxxxxxxxxxxxxxxxx http://lists.xensource.com/xen-changelog
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |