From 79db539f336942ef3dda7ceb4bea7595f3b0eb70 Mon Sep 17 00:00:00 2001 From: Morgan Haskel Date: Tue, 10 Mar 2015 17:13:31 -0700 Subject: [PATCH] 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. --- manifests/params.pp | 4 ---- 1 file changed, 4 deletions(-) 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') } -- 2.45.2