mirror of
https://github.com/xen-project/xen.git
synced 2026-10-29 18:50:05 +01:00
xend: don't drop device config on domain start failure
If domain creation in xend fails before devices are configured, e.g. insufficient memory, device config is dropped from xend's managed domain config. Once xend is restarted, the domain's devices are lost. This patch fixes a bug in XendConfig where only the device controller was consulted for device configuration. Signed-off-by: Jim Fehlig <jfehlig@novell.com>
This commit is contained in:
1 parent
af277a631b
commit
77af399e7f
1 file changed
+1
-1
@@ -1171,8 +1171,8 @@ class XendConfig(dict):
|
||||
config.append(['VDI', dev_cfg.get('VDI', '')])
|
||||
|
||||
sxpr.append(['device', config])
|
||||
found = True
|
||||
|
||||
found = True
|
||||
except:
|
||||
log.exception("dumping sxp from device controllers")
|
||||
pass
|
||||
|
||||