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.
This commit is contained in:
Morgan Haskel 2015-03-10 17:13:31 -07:00
parent 481846b030
commit 79db539f33

View file

@ -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')
}