]> git.ipfire.org Git - thirdparty/libvirt.git/commitdiff
virt-xml-validate: Fix incorrect wildcards for XML roots
authorHan Han <hhan@redhat.com>
Wed, 6 Jul 2022 02:02:52 +0000 (10:02 +0800)
committerMichal Privoznik <mprivozn@redhat.com>
Thu, 7 Jul 2022 10:21:16 +0000 (12:21 +0200)
To match the XML roots domainCapabilities and storagepoolCapabilities,
the wildcards should be *domainCap* and *storagepoolCap*.

Fixes: 7b0e2e4a558da6ea7e450d5a1a30d1557abc5aae
Signed-off-by: Han Han <hhan@redhat.com>
Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
tools/virt-xml-validate.in

index e444ef2fbce5f1f6be819f75cbb523adb6f8a2e7..2d5ba510ab3fa036d09a5efa3bc4cd8f0ba2d7eb 100644 (file)
@@ -86,7 +86,7 @@ if [ -z "$TYPE" ]; then
      *domainbackup*)
         TYPE="domainbackup"
         ;;
-     *domaincaps*)
+     *domainCap*)
         TYPE="domaincaps"
         ;;
      *domain*)
@@ -98,7 +98,7 @@ if [ -z "$TYPE" ]; then
      *network*)
         TYPE="network"
         ;;
-     *storagepoolcaps*)
+     *storagepoolCap*)
         TYPE="storagepoolcaps"
         ;;
      *pool*)