diff options
Diffstat (limited to 'lib/puppet')
-rwxr-xr-x | lib/puppet/type/file/ensure.rb | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/puppet/type/file/ensure.rb b/lib/puppet/type/file/ensure.rb index 3a1a824bd..175b821b3 100755 --- a/lib/puppet/type/file/ensure.rb +++ b/lib/puppet/type/file/ensure.rb @@ -137,6 +137,10 @@ module Puppet # We have to treat :present specially, because it works with any # type of file. def insync?(currentvalue) + unless currentvalue == :absent or resource.replace? + return true + end + if self.should == :present if currentvalue.nil? or currentvalue == :absent return false |