summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorluke <luke@980ebf18-57e1-0310-9a29-db15c13687c0>2007-01-04 19:47:05 +0000
committerluke <luke@980ebf18-57e1-0310-9a29-db15c13687c0>2007-01-04 19:47:05 +0000
commit9c1a4464a95220c07c0dbc4b761bc70d4177183f (patch)
treef87f827d3bfa6cddd4f0d397e29ac8e26b5b4b57 /lib
parent2b271f8ab5853a6b48de14ca52a20979c96d42a4 (diff)
Fixing #403.
git-svn-id: https://reductivelabs.com/svn/puppet/trunk@2036 980ebf18-57e1-0310-9a29-db15c13687c0
Diffstat (limited to 'lib')
-rwxr-xr-xlib/puppet/type/pfile/ensure.rb5
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/puppet/type/pfile/ensure.rb b/lib/puppet/type/pfile/ensure.rb
index 6f7b15d49..9e1eec86d 100755
--- a/lib/puppet/type/pfile/ensure.rb
+++ b/lib/puppet/type/pfile/ensure.rb
@@ -154,8 +154,9 @@ module Puppet
end
def sync
- unless self.should == :absent
- @parent.remove_existing(self.should)
+ @parent.remove_existing(self.should)
+ if self.should == :absent
+ return :file_removed
end
event = super