diff options
author | luke <luke@980ebf18-57e1-0310-9a29-db15c13687c0> | 2005-11-16 17:12:11 +0000 |
---|---|---|
committer | luke <luke@980ebf18-57e1-0310-9a29-db15c13687c0> | 2005-11-16 17:12:11 +0000 |
commit | a4562bfba94d18da54ad9560245d0669cc151c76 (patch) | |
tree | e923cb50e33737ba06ef6aefce373fbb9f3f97ff /lib/puppet/storage.rb | |
parent | 42a9d9a3f8ac698370c36c4ca631e82797e01ece (diff) | |
download | puppet-a4562bfba94d18da54ad9560245d0669cc151c76.tar.gz puppet-a4562bfba94d18da54ad9560245d0669cc151c76.tar.xz puppet-a4562bfba94d18da54ad9560245d0669cc151c76.zip |
Lots of refactoring, and added the capture_stderr method
git-svn-id: https://reductivelabs.com/svn/puppet/trunk@742 980ebf18-57e1-0310-9a29-db15c13687c0
Diffstat (limited to 'lib/puppet/storage.rb')
-rw-r--r-- | lib/puppet/storage.rb | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/puppet/storage.rb b/lib/puppet/storage.rb index dfcb5fe55..8f2d12de6 100644 --- a/lib/puppet/storage.rb +++ b/lib/puppet/storage.rb @@ -31,6 +31,7 @@ module Puppet Puppet.info "Statefile %s does not exist" % Puppet[:checksumfile] return end + begin #Puppet.debug "Loading statefile %s" % Puppet[:checksumfile] File.open(Puppet[:checksumfile]) { |file| file.each { |line| @@ -46,6 +47,9 @@ module Puppet end } } + rescue => detail + Puppet.err "Could not read %s" % Puppet[:checksumfile] + end #Puppet.debug "Loaded state is %s" % @@state.inspect end |