]> git.ipfire.org Git - thirdparty/libvirt.git/commitdiff
qemuDomainDefValidateDiskLunSource: Unbreak error messages
authorPeter Krempa <pkrempa@redhat.com>
Tue, 7 Sep 2021 09:15:45 +0000 (11:15 +0200)
committerPeter Krempa <pkrempa@redhat.com>
Thu, 9 Sep 2021 08:17:28 +0000 (10:17 +0200)
Simplify looking for the error messages.

Signed-off-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
src/qemu/qemu_domain.c

index 25b7f0320476e2f0ea2556bad9f952fa8dac7fd0..7f7d6dcfcc5c5c50ff9a1da572946e825b39f76a 100644 (file)
@@ -9840,15 +9840,13 @@ qemuDomainDefValidateDiskLunSource(const virStorageSource *src)
     if (virStorageSourceGetActualType(src) == VIR_STORAGE_TYPE_NETWORK) {
         if (src->protocol != VIR_STORAGE_NET_PROTOCOL_ISCSI) {
             virReportError(VIR_ERR_CONFIG_UNSUPPORTED,
-                           _("disk device='lun' is not supported "
-                             "for protocol='%s'"),
+                           _("disk device='lun' is not supported for protocol='%s'"),
                            virStorageNetProtocolTypeToString(src->protocol));
             return -1;
         }
     } else if (!virStorageSourceIsBlockLocal(src)) {
         virReportError(VIR_ERR_CONFIG_UNSUPPORTED, "%s",
-                       _("disk device='lun' is only valid for block "
-                         "type disk source"));
+                       _("disk device='lun' is only valid for block type disk source"));
         return -1;
     }