mirror of
https://github.com/xen-project/xen.git
synced 2026-10-29 10:40:03 +01:00
[XEND] Fix HVM configuration parsing typo for certain cfg values.
Signed-off-by: Alastair Tse <atse@xensource.com>
This commit is contained in:
1 parent
16651e108b
commit
c016f643db
1 file changed
+2
-2
@@ -625,7 +625,7 @@ class XendConfig(dict):
|
||||
self['image'] = image
|
||||
|
||||
for apikey, imgkey in XENAPI_HVM_CFG.items():
|
||||
val = sxp.child(image_sxp, imgkey, None)
|
||||
val = sxp.child_value(image_sxp, imgkey, None)
|
||||
if val != None:
|
||||
self[apikey] = val
|
||||
|
||||
@@ -1039,7 +1039,7 @@ class XendConfig(dict):
|
||||
self['image'] = image
|
||||
|
||||
for apikey, imgkey in XENAPI_HVM_CFG.items():
|
||||
val = sxp.child(image_sxp, imgkey, None)
|
||||
val = sxp.child_value(image_sxp, imgkey, None)
|
||||
if val != None:
|
||||
self[apikey] = val
|
||||
|
||||
|
||||