summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lib/puppet/file_serving/configuration.rb2
-rwxr-xr-xspec/unit/file_serving/configuration.rb2
2 files changed, 2 insertions, 2 deletions
diff --git a/lib/puppet/file_serving/configuration.rb b/lib/puppet/file_serving/configuration.rb
index 4f264f3c0..cb6cc3634 100644
--- a/lib/puppet/file_serving/configuration.rb
+++ b/lib/puppet/file_serving/configuration.rb
@@ -41,7 +41,7 @@ class Puppet::FileServing::Configuration
end
if mounts["modules"].environment(node).module(mount_name)
- Puppet::Util::Warnings.warn_once "DEPRECATION NOTICE: Found module '%s' without using the 'modules' mount; please prefix path with 'modules/'" % mount_name
+ Puppet::Util::Warnings.warnonce "DEPRECATION NOTICE: Found module '%s' without using the 'modules' mount; please prefix path with 'modules/'" % mount_name
return mounts["modules"]
end
diff --git a/spec/unit/file_serving/configuration.rb b/spec/unit/file_serving/configuration.rb
index c63e3b370..60515bf1e 100755
--- a/spec/unit/file_serving/configuration.rb
+++ b/spec/unit/file_serving/configuration.rb
@@ -128,7 +128,7 @@ describe Puppet::FileServing::Configuration do
mount.expects(:environment).with("mynode").returns env
config.stubs(:mounts).returns("modules" => mount)
- Puppet::Util::Warnings.expects(:warn_once)
+ Puppet::Util::Warnings.expects(:warnonce)
config.find_mount("foo", "mynode").should equal(mount)
end