Skip to content

Commit

Permalink
Fix schema correctness for element 'disabled'
Browse files Browse the repository at this point in the history
For the 'disabled' element, jing would say:
samba-server.rng:53:48: error: duplicate attribute "type" from namespace "http://www.suse.com/1.0/configns"

'accounts' was not causing problems, just a cleanup
  • Loading branch information
mvidner committed Jun 1, 2020
1 parent 49842a4 commit a2e546b
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/autoyast-rnc/samba-server.rnc
Expand Up @@ -6,7 +6,7 @@ include "common.rnc"

workgroup = element workgroup { STRING }
accounts = element accounts {
attribute config:type { text }?,
LIST,
element account { STRING }*
}

Expand All @@ -20,12 +20,15 @@ samba-server =
element fixme { STRING }*
}? &
element config {
# WTF, this should be a "LIST", but
# https://github.com/yast/yast-samba-client/blob/cfd7b2c61b1cae9df1035ea8399fb10213ea0c99/src/modules/SambaConfig.pm#L536
# allows a hash
attribute config:type { text }? &
element comment { STRING }? &
element listentry {
MAP,
(
element disabled { attribute config:type { text }? & STRING }? &
element disabled { BOOLEAN }? &
element name { STRING }? &
element comment { STRING }? &
element parameters {
Expand Down

0 comments on commit a2e546b

Please sign in to comment.