diff options
author | Luke Kanies <luke@madstop.com> | 2008-12-07 18:04:14 -0600 |
---|---|---|
committer | James Turnbull <james@lovedthanlost.net> | 2008-12-08 15:45:06 +1100 |
commit | 18fe5c3ac2ad4c42afd30ba2effad28607fe746d (patch) | |
tree | 7c4ba6b654aa6799d83a65861fc2ade479cf08b3 /lib | |
parent | b22303e31654b44c300c713426d7f16ef37f4210 (diff) | |
download | puppet-18fe5c3ac2ad4c42afd30ba2effad28607fe746d.tar.gz puppet-18fe5c3ac2ad4c42afd30ba2effad28607fe746d.tar.xz puppet-18fe5c3ac2ad4c42afd30ba2effad28607fe746d.zip |
Fixing #1750 again - All of the properties and now :ensure check replace?
Signed-off-by: Luke Kanies <luke@madstop.com>
Diffstat (limited to 'lib')
-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 |