mirror of
https://github.com/libvirt/libvirt.git
synced 2025-02-25 18:55:26 -06:00
xl: fix 8126d870
broken test
xlconfigtest expects the comma, don't clean it up even if there is no target to write.
This commit is contained in:
parent
c9ddecdf44
commit
710d875fb7
@ -1068,7 +1068,7 @@ xenFormatXLDisk(virConfValuePtr list, virDomainDiskDefPtr disk)
|
|||||||
|
|
||||||
/* devtype */
|
/* devtype */
|
||||||
if (disk->device == VIR_DOMAIN_DISK_DEVICE_CDROM)
|
if (disk->device == VIR_DOMAIN_DISK_DEVICE_CDROM)
|
||||||
virBufferAddLit(&buf, "devtype=cdrom");
|
virBufferAddLit(&buf, "devtype=cdrom,");
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* target
|
* target
|
||||||
@ -1082,7 +1082,7 @@ xenFormatXLDisk(virConfValuePtr list, virDomainDiskDefPtr disk)
|
|||||||
goto cleanup;
|
goto cleanup;
|
||||||
|
|
||||||
if (target)
|
if (target)
|
||||||
virBufferAsprintf(&buf, ",target=%s", target);
|
virBufferAsprintf(&buf, "target=%s", target);
|
||||||
|
|
||||||
if (virBufferCheckError(&buf) < 0)
|
if (virBufferCheckError(&buf) < 0)
|
||||||
goto cleanup;
|
goto cleanup;
|
||||||
|
Loading…
Reference in New Issue
Block a user