Skip to content

Commit

Permalink
Merge pull request #302 from bmjen/cuz-strict-variables
Browse files Browse the repository at this point in the history
fix for strict variables checking
  • Loading branch information
Morgan Haskel committed Apr 20, 2015
2 parents 16104d0 + ef4aac8 commit 6aebeea
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions manifests/init.pp
Original file line number Diff line number Diff line change
Expand Up @@ -80,14 +80,15 @@
case $warn {
true: {
$warn_message = $default_warn_message
$append_header = true
$_append_header = true
}
false: {
$warn_message = ''
$_append_header = false
}
default: {
$warn_message = $warn
$append_header = true
$_append_header = true
}
}

Expand All @@ -104,7 +105,7 @@
validate_cmd => $validate_cmd,
}

if $append_header {
if $_append_header {
file_fragment { "#{$name}_header":
tag => $safe_name,
content => $warn_message,
Expand Down

0 comments on commit 6aebeea

Please sign in to comment.