[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Xen-changelog] [xen-unstable] [XEND] Device update should handle SXP without 'device' as first
# HG changeset patch # User Alastair Tse <atse@xxxxxxxxxxxxx> # Date 1168534991 0 # Node ID 66eba8d1b83a9d22b5b88d0f11fe8aa79895f1cb # Parent bf605c314a915f2723f43873b1bfc9b23a6a677c [XEND] Device update should handle SXP without 'device' as first param. Signed-off-by: Alastair Tse <atse@xxxxxxxxxxxxx> --- tools/python/xen/xend/XendConfig.py | 9 +++++---- 1 files changed, 5 insertions(+), 4 deletions(-) diff -r bf605c314a91 -r 66eba8d1b83a tools/python/xen/xend/XendConfig.py --- a/tools/python/xen/xend/XendConfig.py Thu Jan 11 16:36:46 2007 +0000 +++ b/tools/python/xen/xend/XendConfig.py Thu Jan 11 17:03:11 2007 +0000 @@ -1020,10 +1020,11 @@ class XendConfig(dict): @return: Returns True if succesfully found and updated a device conf """ if dev_uuid in self['devices']: - config = sxp.child0(cfg_sxp) - dev_type = sxp.name(config) - dev_info = {} - + if sxp.child0(cfg_sxp) == 'device': + config = sxp.child0(cfg_sxp) + else: + config = cfg_sxp + for opt_val in config[1:]: try: opt, val = opt_val _______________________________________________ Xen-changelog mailing list Xen-changelog@xxxxxxxxxxxxxxxxxxx http://lists.xensource.com/xen-changelog
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |