Skip to content

Commit

Permalink
Only use the strict variables workaround if using strict variables
Browse files Browse the repository at this point in the history
This should avoid issues with defined on earlier versions of puppet
  • Loading branch information
Morgan Haskel committed May 11, 2015
1 parent 424b754 commit 3838c66
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion manifests/params.pp
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

# prior to puppet 3.5.0, defined couldn't test if a variable was defined
# strict variables wasn't added until 3.5.0, so this should be fine.
if versioncmp($::puppetversion, '3.5.0') < 0 {
if ! $::settings::strict_variables {
$xfacts = {
'lsbdistcodename' => $::lsbdistcodename,
'lsbdistrelease' => $::lsbdistrelease,
Expand Down

0 comments on commit 3838c66

Please sign in to comment.