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:
Cédric Bosdonnat 2016-10-19 20:51:15 +02:00
parent c9ddecdf44
commit 710d875fb7

View File

@ -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;