From: Morgan Haskel Date: Wed, 11 Mar 2015 00:13:31 +0000 (-0700) Subject: Inheritance of apt::params means it can't be private X-Git-Tag: 2.0.0~19^2 X-Git-Url: https://review.fuel-infra.org/gitweb?a=commitdiff_plain;h=79db539f336942ef3dda7ceb4bea7595f3b0eb70;p=puppet-modules%2Fpuppetlabs-apt.git Inheritance of apt::params means it can't be private Otherwise, if another module has `class { 'apt': }` in it everything fails, as `$caller_module_name` will be the other module name. --- diff --git a/manifests/params.pp b/manifests/params.pp index e3cc825..f4489cd 100644 --- a/manifests/params.pp +++ b/manifests/params.pp @@ -1,9 +1,5 @@ class apt::params { - if defined('$caller_module_name') and $caller_module_name and $caller_module_name != $module_name { - fail('apt::params is a private class and cannot be accessed directly') - } - if $::osfamily != 'Debian' { fail('This module only works on Debian or derivatives like Ubuntu') }