mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-01-03 03:25:20 +00:00
Fix xmconfigtest
Commit ac63014c
introduced a regression in the conversion of Xen
xm config to XML by emitting an empty <cmdline>. Prior to this
commit, <cmdline> was omitted if the xm config was missing (or
contained an empty) 'extra='.
This commit is contained in:
parent
ac63014cfd
commit
64b60266ad
@ -350,7 +350,7 @@ xenParseXM(virConfPtr conf, int xendConfigVersion,
|
|||||||
goto cleanup;
|
goto cleanup;
|
||||||
if (xenXMConfigCopyStringOpt(conf, "ramdisk", &def->os.initrd) < 0)
|
if (xenXMConfigCopyStringOpt(conf, "ramdisk", &def->os.initrd) < 0)
|
||||||
goto cleanup;
|
goto cleanup;
|
||||||
if (xenXMConfigGetString(conf, "extra", &extra, "") < 0)
|
if (xenXMConfigGetString(conf, "extra", &extra, NULL) < 0)
|
||||||
goto cleanup;
|
goto cleanup;
|
||||||
if (xenXMConfigGetString(conf, "root", &root, NULL) < 0)
|
if (xenXMConfigGetString(conf, "root", &root, NULL) < 0)
|
||||||
goto cleanup;
|
goto cleanup;
|
||||||
|
Loading…
Reference in New Issue
Block a user