From nobody Tue May 14 12:12:00 2024 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of redhat.com designates 170.10.129.124 as permitted sender) client-ip=170.10.129.124; envelope-from=libvir-list-bounces@redhat.com; helo=us-smtp-delivery-124.mimecast.com; Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of redhat.com designates 170.10.129.124 as permitted sender) smtp.mailfrom=libvir-list-bounces@redhat.com; dmarc=pass(p=none dis=none) header.from=redhat.com ARC-Seal: i=1; a=rsa-sha256; t=1657072988; cv=none; d=zohomail.com; s=zohoarc; b=WNG4YoB6BQ1WFZK+6Yj2sUqblsG9I8a47l0WRVLBPkblNI2Pk5ANcuS1XwYTWCOi13XkpvydBjw5JWJP6tEgeAn59HvbYbdRVAhb/3K3Bsj4VuVMuotPwhHYBNUBe291yvsPHsRRkeN9LM3TAdJUNTr8wkJjCfiYb+3TclQs1Ck= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1657072988; h=Content-Type:Content-Transfer-Encoding:Cc:Date:From:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:Sender:Subject:To; bh=rOUqnKcZJYtWbKXP+JimVT4HvefdyMWrrLftTcd3o9A=; b=C/ntWuuKhp63zQE7GbJc7S/Y7jENXnx1UGgQmbOhpCJgEW0lnMA2+xmLVwh8HE5iFgWb9enJg2TbLACHN5b7E44mFvQ3+XRfVlrclRIwJC5mc5mrfw4KCnah5hPbpqdC/29j4cat9REHaAFFIdzgAiesBRxjfvt3BLXmZtgvT+4= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of redhat.com designates 170.10.129.124 as permitted sender) smtp.mailfrom=libvir-list-bounces@redhat.com; dmarc=pass header.from= (p=none dis=none) Return-Path: Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) by mx.zohomail.com with SMTPS id 1657072988969810.6933387875523; Tue, 5 Jul 2022 19:03:08 -0700 (PDT) Received: from mimecast-mx02.redhat.com (mimecast-mx02.redhat.com [66.187.233.88]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-577-L_3pIk9sOA-E0D2qRcqzkg-1; Tue, 05 Jul 2022 22:03:04 -0400 Received: from smtp.corp.redhat.com (int-mx10.intmail.prod.int.rdu2.redhat.com [10.11.54.10]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id 8EC0E8339BE; Wed, 6 Jul 2022 02:03:02 +0000 (UTC) Received: from mm-prod-listman-01.mail-001.prod.us-east-1.aws.redhat.com (mm-prod-listman-01.mail-001.prod.us-east-1.aws.redhat.com [10.30.29.100]) by smtp.corp.redhat.com (Postfix) with ESMTP id B895A416390; Wed, 6 Jul 2022 02:03:00 +0000 (UTC) Received: from mm-prod-listman-01.mail-001.prod.us-east-1.aws.redhat.com (localhost [IPv6:::1]) by mm-prod-listman-01.mail-001.prod.us-east-1.aws.redhat.com (Postfix) with ESMTP id 73053194705E; Wed, 6 Jul 2022 02:03:00 +0000 (UTC) Received: from smtp.corp.redhat.com (int-mx04.intmail.prod.int.rdu2.redhat.com [10.11.54.4]) by mm-prod-listman-01.mail-001.prod.us-east-1.aws.redhat.com (Postfix) with ESMTP id 3B6F5194705D for ; Wed, 6 Jul 2022 02:02:59 +0000 (UTC) Received: by smtp.corp.redhat.com (Postfix) id E63992026985; Wed, 6 Jul 2022 02:02:58 +0000 (UTC) Received: from localhost.localdomain.com (ovpn-13-73.pek2.redhat.com [10.72.13.73]) by smtp.corp.redhat.com (Postfix) with ESMTP id 828602026D64; Wed, 6 Jul 2022 02:02:57 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1657072988; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding:list-id:list-help: list-unsubscribe:list-subscribe:list-post; bh=rOUqnKcZJYtWbKXP+JimVT4HvefdyMWrrLftTcd3o9A=; b=Q8XAVlhdDzk/GH6H0TCCADwjiJ/elaZVw5HCXwrU2tn748vUf2nz4t/QIPwSl0MvmoyR2h AXk/6Ksv5OObUAiEgla2znEIUuhidIfV6JaXKbHv4+Kx95dH9p3QlYXnuy4stxx3EmRzTr 9BC2EBGVRbzuGZgucYqVsDBP0Z2c5JA= X-MC-Unique: L_3pIk9sOA-E0D2qRcqzkg-1 X-Original-To: libvir-list@listman.corp.redhat.com From: Han Han To: libvir-list@redhat.com Subject: [PATCH] virt-xml-validate: Fix incorrect wildcards for XML roots Date: Wed, 6 Jul 2022 10:02:52 +0800 Message-Id: <20220706020252.887907-1-hhan@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.78 on 10.11.54.4 X-BeenThere: libvir-list@redhat.com X-Mailman-Version: 2.1.29 Precedence: list List-Id: Development discussions about the libvirt library & tools List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Han Han Errors-To: libvir-list-bounces@redhat.com Sender: "libvir-list" X-Scanned-By: MIMEDefang 2.85 on 10.11.54.10 Authentication-Results: relay.mimecast.com; auth=pass smtp.auth=CUSA124A263 smtp.mailfrom=libvir-list-bounces@redhat.com X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Transfer-Encoding: quoted-printable X-ZohoMail-DKIM: pass (identity @redhat.com) X-ZM-MESSAGEID: 1657072990886100001 Content-Type: text/plain; charset="utf-8"; x-default="true" To match the XML roots domainCapabilities and storagepoolCapabilities, the wildcards should be *domainCap* and *storagepoolCap*. Fixes: 7b0e2e4a55 Signed-off-by: Han Han Reviewed-by: Michal Privoznik --- 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=3D"domainbackup" ;; - *domaincaps*) + *domainCap*) TYPE=3D"domaincaps" ;; *domain*) @@ -98,7 +98,7 @@ if [ -z "$TYPE" ]; then *network*) TYPE=3D"network" ;; - *storagepoolcaps*) + *storagepoolCap*) TYPE=3D"storagepoolcaps" ;; *pool*) --=20 2.36.1