We need to modify schema-recipe.rng, because when PyRecipes are used,
user no longer needs to define oneOrMore hosts and attribute python
in network tag is used for specifying path to file in XML recipe.
Signed-off-by: Jiri Prochazka <jprochaz(a)redhat.com>
---
schema-recipe.rng | 7 +++++--
1 file changed, 5 insertions(+), 2 deletions(-)
diff --git a/schema-recipe.rng b/schema-recipe.rng
index ad841bb..b7e3417 100644
--- a/schema-recipe.rng
+++ b/schema-recipe.rng
@@ -32,14 +32,17 @@
<define name="network">
<element name="network">
+ <optional>
+ <attribute name="python"/>
+ </optional>
<interleave>
<optional>
<ref name="define"/>
</optional>
- <oneOrMore>
+ <zeroOrMore>
<ref name="host"/>
- </oneOrMore>
+ </zeroOrMore>
</interleave>
</element>
</define>
--
2.4.3