[PATCH] virt-xml-validate: Fix incorrect wildcards for XML roots

Han Han posted 1 patch 1 year, 9 months ago
Patches applied successfully (tree, apply log)
git fetch https://github.com/patchew-project/libvirt tags/patchew/20220706020252.887907-1-hhan@redhat.com
tools/virt-xml-validate.in | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
[PATCH] virt-xml-validate: Fix incorrect wildcards for XML roots
Posted by Han Han 1 year, 9 months ago
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>
---
 tools/virt-xml-validate.in | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/tools/virt-xml-validate.in b/tools/virt-xml-validate.in
index e444ef2fbc..2d5ba510ab 100644
--- a/tools/virt-xml-validate.in
+++ b/tools/virt-xml-validate.in
@@ -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*)
-- 
2.36.1
Re: [PATCH] virt-xml-validate: Fix incorrect wildcards for XML roots
Posted by Michal Prívozník 1 year, 9 months ago
On 7/6/22 04:02, Han Han wrote:
> 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>
> ---
>  tools/virt-xml-validate.in | 4 ++--
>  1 file changed, 2 insertions(+), 2 deletions(-)
> 
Reviewed-by: Michal Privoznik <mprivozn@redhat.com>

Michal