summaryrefslogtreecommitdiffstats
path: root/lib/puppet
diff options
context:
space:
mode:
authorluke <luke@980ebf18-57e1-0310-9a29-db15c13687c0>2005-09-26 19:08:48 +0000
committerluke <luke@980ebf18-57e1-0310-9a29-db15c13687c0>2005-09-26 19:08:48 +0000
commitf48f14ab4df7c2d3e327b3317503a181cbe13ecb (patch)
treef094daf3e031458a8c48de7aeff85c79bb77be2c /lib/puppet
parent5bb8c4a0ae72d84693239c53e71306438a399588 (diff)
downloadpuppet-f48f14ab4df7c2d3e327b3317503a181cbe13ecb.tar.gz
puppet-f48f14ab4df7c2d3e327b3317503a181cbe13ecb.tar.xz
puppet-f48f14ab4df7c2d3e327b3317503a181cbe13ecb.zip
fixing behaviour when files are missing
git-svn-id: https://reductivelabs.com/svn/puppet/trunk@706 980ebf18-57e1-0310-9a29-db15c13687c0
Diffstat (limited to 'lib/puppet')
-rw-r--r--lib/puppet/type/pfile.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/puppet/type/pfile.rb b/lib/puppet/type/pfile.rb
index 8dbdcc541..980c83fdd 100644
--- a/lib/puppet/type/pfile.rb
+++ b/lib/puppet/type/pfile.rb
@@ -697,14 +697,14 @@ module Puppet
args.delete(:owner)
end
- Puppet.notice "returning describe args %s" % args.inspect
return args
end
def retrieve
sum = nil
- unless @stats = self.describe
+ @stats = self.describe
+ if @stats.nil? or @stats[:type].nil?
@is = :notdescribed
return nil
end