]> gitweb.fluxo.info Git - puppet-tftp.git/commitdiff
Revert "Fully qualify $::caller_module_name fact."
authorcrayfishx <craig@craigdunn.org>
Wed, 11 Jul 2012 18:51:39 +0000 (11:51 -0700)
committercrayfishx <craig@craigdunn.org>
Wed, 11 Jul 2012 18:51:39 +0000 (11:51 -0700)
* the problem is with the test not the code

This reverts commit b5fce3cce34c5ff01243a4dfe9205d26f3c98857.

manifests/file.pp
spec/fixtures/manifests/site.pp [new file with mode: 0644]

index 6eaa394f620f8a57f73a73fb00fbb794ef66f172..3628188fca0097c02e323793c2c6da0c4451f629 100644 (file)
@@ -44,8 +44,8 @@ define tftp::file (
   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
     }
diff --git a/spec/fixtures/manifests/site.pp b/spec/fixtures/manifests/site.pp
new file mode 100644 (file)
index 0000000..e69de29