virt-xml-validate: Fix incorrect wildcards for XML roots

To match the XML roots domainCapabilities and storagepoolCapabilities,
the wildcards should be *domainCap* and *storagepoolCap*.

Fixes: 7b0e2e4a55
Signed-off-by: Han Han <hhan@redhat.com>
Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
This commit is contained in:
Han Han 2022-07-06 10:02:52 +08:00 committed by Michal Privoznik
parent 19c8da1d4c
commit 89c16bf9dd

View File

@ -86,7 +86,7 @@ if [ -z "$TYPE" ]; then
*domainbackup*) *domainbackup*)
TYPE="domainbackup" TYPE="domainbackup"
;; ;;
*domaincaps*) *domainCap*)
TYPE="domaincaps" TYPE="domaincaps"
;; ;;
*domain*) *domain*)
@ -98,7 +98,7 @@ if [ -z "$TYPE" ]; then
*network*) *network*)
TYPE="network" TYPE="network"
;; ;;
*storagepoolcaps*) *storagepoolCap*)
TYPE="storagepoolcaps" TYPE="storagepoolcaps"
;; ;;
*pool*) *pool*)