Skip to content

Commit

Permalink
Merge pull request #2669 from OSInside/vagrantconfig_required_with_va…
Browse files Browse the repository at this point in the history
…grant_disk_format

Add vagrantconfig rule for vagrant format
  • Loading branch information
Conan-Kudo authored Oct 22, 2024
2 parents 5416ae8 + 96cda0d commit f525c0f
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
7 changes: 7 additions & 0 deletions kiwi/schema/kiwi.rnc
Original file line number Diff line number Diff line change
Expand Up @@ -1426,6 +1426,13 @@ div {
"image types: $types"
]
]
sch:rule [
context = "type[@format='vagrant']"
sch:assert [
test = "vagrantconfig[@provider]"
"<vagrantconfig> section is required for the vagrant format"
]
]
]
sch:pattern [
abstract = "true"
Expand Down
3 changes: 3 additions & 0 deletions kiwi/schema/kiwi.rng
Original file line number Diff line number Diff line change
Expand Up @@ -2165,6 +2165,9 @@ volume management system</a:documentation>
<sch:rule context="type[contains('$types', @image)]">
<sch:assert test="@$attr">$attr attribute must be set for the following image types: $types</sch:assert>
</sch:rule>
<sch:rule context="type[@format='vagrant']">
<sch:assert test="vagrantconfig[@provider]">&lt;vagrantconfig&gt; section is required for the vagrant format</sch:assert>
</sch:rule>
</sch:pattern>
<sch:pattern abstract="true" id="image_expandable">
<sch:rule context="type[@$attr='true']">
Expand Down

0 comments on commit f525c0f

Please sign in to comment.