diff options
Diffstat (limited to 'lib/puppet/util/storage.rb')
-rw-r--r-- | lib/puppet/util/storage.rb | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/lib/puppet/util/storage.rb b/lib/puppet/util/storage.rb index 076952c1d..974d56f56 100644 --- a/lib/puppet/util/storage.rb +++ b/lib/puppet/util/storage.rb @@ -53,7 +53,7 @@ class Puppet::Util::Storage return end unless File.file?(Puppet[:statefile]) - Puppet.warning("Checksumfile %s is not a file, ignoring" % Puppet[:statefile]) + Puppet.warning("Checksumfile #{Puppet[:statefile]} is not a file, ignoring") return end Puppet::Util.benchmark(:debug, "Loaded state") do @@ -61,12 +61,12 @@ class Puppet::Util::Storage begin @@state = YAML.load(file) rescue => detail - Puppet.err "Checksumfile %s is corrupt (%s); replacing" % [Puppet[:statefile], detail] + Puppet.err "Checksumfile #{Puppet[:statefile]} is corrupt (#{detail}); replacing" begin File.rename(Puppet[:statefile], Puppet[:statefile] + ".bad") rescue raise Puppet::Error, - "Could not rename corrupt %s; remove manually" % Puppet[:statefile] + "Could not rename corrupt #{Puppet[:statefile]}; remove manually" end end end @@ -77,7 +77,7 @@ class Puppet::Util::Storage self.init end - #Puppet.debug "Loaded state is %s" % @@state.inspect + #Puppet.debug "Loaded state is #{@@state.inspect}" end def self.stateinspect @@ -88,7 +88,7 @@ class Puppet::Util::Storage Puppet.debug "Storing state" unless FileTest.exist?(Puppet[:statefile]) - Puppet.info "Creating state file %s" % Puppet[:statefile] + Puppet.info "Creating state file #{Puppet[:statefile]}" end Puppet::Util.benchmark(:debug, "Stored state") do |