X-Git-Url: https://review.fuel-infra.org/gitweb?a=blobdiff_plain;ds=sidebyside;f=manifests%2Fparams.pp;h=ea1087e7a93655e371cb99c1d039a0f64c5016ef;hb=3f6863ac4c97f834bebc811852452b073d202682;hp=b75a0e7dcc9cf181ac19e09982b98547d32663c4;hpb=47b9b6dee7c11576c37f7f9366da6a23531e9892;p=puppet-modules%2Fpuppetlabs-apt.git diff --git a/manifests/params.pp b/manifests/params.pp index b75a0e7..ea1087e 100644 --- a/manifests/params.pp +++ b/manifests/params.pp @@ -4,9 +4,9 @@ class apt::params { fail('This module only works on Debian or derivatives like Ubuntu') } - # 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 ! $::settings::strict_variables { + # 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 $::puppetversion and versioncmp($::puppetversion, '3.5.0') < 0 { $xfacts = { 'lsbdistcodename' => $::lsbdistcodename, 'lsbdistrelease' => $::lsbdistrelease,