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:
parent
481846b030
commit
79db539f33
1 changed files with 0 additions and 4 deletions
|
@ -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')
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue