summaryrefslogtreecommitdiffstats
path: root/lib/puppet/util/autoload.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/puppet/util/autoload.rb')
-rw-r--r--lib/puppet/util/autoload.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/puppet/util/autoload.rb b/lib/puppet/util/autoload.rb
index f0be0ece2..cdfc194da 100644
--- a/lib/puppet/util/autoload.rb
+++ b/lib/puppet/util/autoload.rb
@@ -24,7 +24,7 @@ class Puppet::Util::Autoload
# List all loaded files.
def self.list_loaded
@loaded.sort { |a,b| a[0] <=> b[0] }.collect do |path, hash|
- "%s: %s" % [path, hash[:file]]
+ "#{path}: #{hash[:file]}"
end
end
@@ -62,7 +62,7 @@ class Puppet::Util::Autoload
begin
self.send(opt.to_s + "=", value)
rescue NoMethodError
- raise ArgumentError, "%s is not a valid option" % opt
+ raise ArgumentError, "#{opt} is not a valid option"
end
end