This fixes the following failed test:
1) tftp::file when deploying file from another module
Failure/Error: })
expected that the catalogue would contain File[/srv/tftp/sample] with source set to `"puppet:///modules/acme/sample"` but it is set to `"puppet:///modules/tftp/sample"` in the catalogue
# ./spec/defines/tftp_file_spec.rb:138
if $source {
$source_real = $source
} elsif $ensure != 'directory' and ! $content {
- if $caller_module_name {
- $mod = $caller_module_name
+ if $::caller_module_name {
+ $mod = $::caller_module_name
} else {
$mod = $module_name
}