# File lib/puppet/configurer.rb, line 43 43: def dostorage 44: begin 45: Puppet::Util::Storage.load 46: @compile_time ||= Puppet::Util::Storage.cache(:configuration)[:compile_time] 47: rescue => detail 48: if Puppet[:trace] 49: puts detail.backtrace 50: end 51: Puppet.err "Corrupt state file %s: %s" % [Puppet[:statefile], detail] 52: begin 53: ::File.unlink(Puppet[:statefile]) 54: retry 55: rescue => detail 56: raise Puppet::Error.new("Cannot remove %s: %s" % 57: [Puppet[:statefile], detail]) 58: end 59: end 60: end