Skip to content

Commit

Permalink
Validate the values of $merge_behavior
Browse files Browse the repository at this point in the history
  • Loading branch information
tampakrap committed Feb 8, 2015
1 parent 959802a commit d102413
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions manifests/init.pp
Original file line number Diff line number Diff line change
Expand Up @@ -134,6 +134,11 @@
ensure => directory,
}
}
if $merge_behavior {
unless $merge_behavior in ['native', 'deep', 'deeper'] {
fail("${merge_behavior} merge behavior is invalid. Valid values are: native, deep, deeper")
}
}
if $eyaml {
require hiera::eyaml
}
Expand Down

0 comments on commit d102413

Please sign in to comment.