render / rpms / libvirt

Forked from rpms/libvirt 10 months ago
Clone
c401cc
From 3b5f78e35e4ac4b771b3baa3a194534b44fb911b Mon Sep 17 00:00:00 2001
c401cc
Message-Id: <3b5f78e35e4ac4b771b3baa3a194534b44fb911b.1386348946.git.jdenemar@redhat.com>
c401cc
From: John Ferlan <jferlan@redhat.com>
c401cc
Date: Thu, 28 Nov 2013 14:53:03 +0100
c401cc
Subject: [PATCH] nodedev: Resolve Relax-NG validity error
c401cc
c401cc
https://bugzilla.redhat.com/show_bug.cgi?id=1035792
c401cc
c401cc
Commit id 'c4a4603de' added an output <path> to the nodedev xml, but
c401cc
did not update the schema.
c401cc
c401cc
This resulted in the failure of the 'virt-xml-validate' on a file
c401cc
generated by 'virsh nodedev-dumpxml pci_0000_00_00_0' (for example).
c401cc
c401cc
This was found/seen by running autotest on my host.
c401cc
c401cc
(cherry picked from commit 0bdefd9b046dc82ce4a6461ccdaba63591ca5464)
c401cc
c401cc
Signed-off-by: Jiri Denemark <jdenemar@redhat.com>
c401cc
---
c401cc
 docs/schemas/nodedev.rng | 3 +++
c401cc
 1 file changed, 3 insertions(+)
c401cc
c401cc
diff --git a/docs/schemas/nodedev.rng b/docs/schemas/nodedev.rng
c401cc
index d2bebff..81ab4d4 100644
c401cc
--- a/docs/schemas/nodedev.rng
c401cc
+++ b/docs/schemas/nodedev.rng
c401cc
@@ -13,6 +13,9 @@
c401cc
          and in virsh -->
c401cc
       <element name="name"><text/></element>
c401cc
       <optional>
c401cc
+        <element name="path"><text/></element>
c401cc
+      </optional>
c401cc
+      <optional>
c401cc
         <element name="parent"><text/></element>
c401cc
       </optional>
c401cc
 
c401cc
-- 
c401cc
1.8.4.5
c401cc