projects
/
xen.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
85bc6f4
)
[XEND] Device update should handle SXP without 'device' as first
author
Alastair Tse
<atse@xensource.com>
Thu, 11 Jan 2007 17:03:11 +0000
(17:03 +0000)
committer
Alastair Tse
<atse@xensource.com>
Thu, 11 Jan 2007 17:03:11 +0000
(17:03 +0000)
param.
Signed-off-by: Alastair Tse <atse@xensource.com>
tools/python/xen/xend/XendConfig.py
patch
|
blob
|
history
diff --git
a/tools/python/xen/xend/XendConfig.py
b/tools/python/xen/xend/XendConfig.py
index cfd2c20e6ea7b7ded37d214ff2a6024e4e873432..b264b79f32077d35e6af69c443d1d6712109d3da 100644
(file)
--- a/
tools/python/xen/xend/XendConfig.py
+++ b/
tools/python/xen/xend/XendConfig.py
@@
-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