mirror of
https://github.com/xen-project/xen.git
synced 2026-10-29 18:50:05 +01:00
Managed HVM guests are not displayed by 'xm list' after restarting xend.
This patch prevents writing empty configuration items to the domain's sexpr configuration file. Without the empty items, the sexpr is parsed properly when xend is started. Signed-off-by: Jim Fehlig <jfehlig@novell.com>
This commit is contained in:
1 parent
f25b2f271c
commit
1598680350
1 file changed
+2
-2
@@ -730,7 +730,7 @@ class XendConfig(dict):
|
||||
|
||||
for key in XENAPI_PLATFORM_CFG:
|
||||
val = sxp.child_value(image_sxp, key, None)
|
||||
if val is not None:
|
||||
if val is not None and val != '':
|
||||
self['platform'][key] = val
|
||||
|
||||
notes = sxp.children(image_sxp, 'notes')
|
||||
@@ -1359,7 +1359,7 @@ class XendConfig(dict):
|
||||
|
||||
for key in XENAPI_PLATFORM_CFG:
|
||||
val = sxp.child_value(image_sxp, key, None)
|
||||
if val is not None:
|
||||
if val is not None and val != '':
|
||||
self['platform'][key] = val
|
||||
|
||||
notes = sxp.children(image_sxp, 'notes')
|
||||
|
||||