Skip to content

Commit

Permalink
Checks $caller_module_name is defined
Browse files Browse the repository at this point in the history
  • Loading branch information
createdbypete authored and grooverdan committed Mar 4, 2014
1 parent 8025fff commit f0e4181
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion manifests/params.pp
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
# This class file is not called directly
class nginx::params {

if $caller_module_name != $module_name {
if $caller_module_name != undef and $caller_module_name != $module_name {
warning("${name} is deprecated as a public API of the ${module_name} module and should no longer be directly included in the manifest.")
}

Expand Down

0 comments on commit f0e4181

Please sign in to comment.