X-Git-Url: https://review.fuel-infra.org/gitweb?a=blobdiff_plain;f=manifests%2Fparams.pp;h=ea1087e7a93655e371cb99c1d039a0f64c5016ef;hb=360f04dcc10d327c99d5dab0870c6ff49e5bb037;hp=b75a0e7dcc9cf181ac19e09982b98547d32663c4;hpb=5476d9033bfee6807800b1d14c8bbb9da4b4c01c;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,