Skip to content

Commit

Permalink
fix for strict variables checking
Browse files Browse the repository at this point in the history
  • Loading branch information
bmjen committed Apr 20, 2015
1 parent 16104d0 commit ef4aac8
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 ef4aac8

Please sign in to comment.