Skip to content

Commit

Permalink
Merge pull request #524 from mhaskel/better_defined_check
Browse files Browse the repository at this point in the history
Only use the strict variables workaround if using strict variables
  • Loading branch information
daenney committed May 11, 2015
2 parents 5d62ceb + 3838c66 commit 535a5b6
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 535a5b6

Please sign in to comment.