Skip to content

Commit

Permalink
unless doesnt support else on puppet3 >_<
Browse files Browse the repository at this point in the history
  • Loading branch information
faxm0dem committed Apr 4, 2017
1 parent dcb0974 commit 71db4ba
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions manifests/config/access.pp
Original file line number Diff line number Diff line change
Expand Up @@ -27,23 +27,23 @@
validate_array($trust)
validate_array($limited)
validate_array($rejected)
unless empty($trust) {
if empty($trust) {
$t_f = ''
} else {
$t_j = join($trust, ',')
$t_f = "\n trusted ${t_j};\n"
} else {
$t_f = ''
}
unless empty($limited) {
if empty($limited) {
$l_f = ''
} else {
$l_j = join($limited, ',')
$l_f = " limited ${l_j};\n"
} else {
$l_f = ''
}
unless empty($rejected) {
if empty($rejected) {
$r_f = ''
} else {
$r_j = join($rejected, ',')
$r_f = " rejected ${r_j};\n"
} else {
$r_f = ''
}

concat::fragment { "ConserverAccessBlock ${title}":
Expand Down

0 comments on commit 71db4ba

Please sign in to comment.