[PATCH] virt-xml-validate: Add support for cpu and domaincheckpoint

Han Han posted 1 patch 2 years, 5 months ago
Test syntax-check failed
Patches applied successfully (tree, apply log)
git fetch https://github.com/patchew-project/libvirt tags/patchew/20211112145553.432247-1-hhan@redhat.com
tools/virt-xml-validate.in | 6 ++++++
1 file changed, 6 insertions(+)
[PATCH] virt-xml-validate: Add support for cpu and domaincheckpoint
Posted by Han Han 2 years, 5 months ago
Signed-off-by: Han Han <hhan@redhat.com>
---
 tools/virt-xml-validate.in | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/tools/virt-xml-validate.in b/tools/virt-xml-validate.in
index 249bcf7eef..a818e2c3a5 100644
--- a/tools/virt-xml-validate.in
+++ b/tools/virt-xml-validate.in
@@ -77,6 +77,9 @@ if [ -z "$TYPE" ]; then
      *domainsnapshot*) # Must come first, since *domain* is a substring
         TYPE="domainsnapshot"
         ;;
+     *domaincheckpoint*)
+        TYPE="domaincheckpoint"
+        ;;
      *domain*)
         TYPE="domain"
         ;;
@@ -110,6 +113,9 @@ if [ -z "$TYPE" ]; then
      *interface*)
         TYPE="interface"
         ;;
+     *cpu*)
+        TYPE="cpu"
+        ;;
      *)
        echo "$0: cannot determine schema type for $XMLFILE" >&2
        exit 3
-- 
2.33.1