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:
Jim Fehlig committed 2007-03-13 18:13:11 -06:00
1 parent f25b2f271c
commit 1598680350
1 file changed
+2 -2
+2 -2
View File
@@ -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')
Reference in new issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.