Signed-off-by: Brice Figureau <[email protected]>
---
lib/puppet/file_serving/configuration.rb | 2 +-
spec/unit/file_serving/configuration.rb | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/lib/puppet/file_serving/configuration.rb
b/lib/puppet/file_serving/configuration.rb
index 4f264f3..cb6cc36 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 c63e3b3..60515bf 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
--
1.6.0.2
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Puppet Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/puppet-dev?hl=en
-~----------~----~----~----~------~----~------~--~---