mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-02-23 20:02:21 +00: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 */
|
||||
if (disk->device == VIR_DOMAIN_DISK_DEVICE_CDROM)
|
||||
virBufferAddLit(&buf, "devtype=cdrom");
|
||||
virBufferAddLit(&buf, "devtype=cdrom,");
|
||||
|
||||
/*
|
||||
* target
|
||||
@ -1082,7 +1082,7 @@ xenFormatXLDisk(virConfValuePtr list, virDomainDiskDefPtr disk)
|
||||
goto cleanup;
|
||||
|
||||
if (target)
|
||||
virBufferAsprintf(&buf, ",target=%s", target);
|
||||
virBufferAsprintf(&buf, "target=%s", target);
|
||||
|
||||
if (virBufferCheckError(&buf) < 0)
|
||||
goto cleanup;
|
||||
|
Loading…
x
Reference in New Issue
Block a user