render / rpms / libvirt

Forked from rpms/libvirt 9 months ago
Clone
Blob Blame History Raw
From 3b5f78e35e4ac4b771b3baa3a194534b44fb911b Mon Sep 17 00:00:00 2001
Message-Id: <3b5f78e35e4ac4b771b3baa3a194534b44fb911b.1386348946.git.jdenemar@redhat.com>
From: John Ferlan <jferlan@redhat.com>
Date: Thu, 28 Nov 2013 14:53:03 +0100
Subject: [PATCH] nodedev: Resolve Relax-NG validity error

https://bugzilla.redhat.com/show_bug.cgi?id=1035792

Commit id 'c4a4603de' added an output <path> to the nodedev xml, but
did not update the schema.

This resulted in the failure of the 'virt-xml-validate' on a file
generated by 'virsh nodedev-dumpxml pci_0000_00_00_0' (for example).

This was found/seen by running autotest on my host.

(cherry picked from commit 0bdefd9b046dc82ce4a6461ccdaba63591ca5464)

Signed-off-by: Jiri Denemark <jdenemar@redhat.com>
---
 docs/schemas/nodedev.rng | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/docs/schemas/nodedev.rng b/docs/schemas/nodedev.rng
index d2bebff..81ab4d4 100644
--- a/docs/schemas/nodedev.rng
+++ b/docs/schemas/nodedev.rng
@@ -13,6 +13,9 @@
          and in virsh -->
       <element name="name"><text/></element>
       <optional>
+        <element name="path"><text/></element>
+      </optional>
+      <optional>
         <element name="parent"><text/></element>
       </optional>
 
-- 
1.8.4.5