Ticket #872: file-content-replace.patch
| File file-content-replace.patch, 0.6 kB (added by ctrlaltdel, 1 year ago) |
|---|
-
a/lib/puppet/type/pfile/content.rb
old new 34 34 35 35 # Override this method to provide diffs if asked for. 36 36 def insync?(is) 37 if ! @resource.replace? and File.exists?(@resource[:path]) 38 return true 39 end 40 37 41 result = super 38 42 if ! result and Puppet[:show_diff] and File.exists?(@resource[:path]) 39 43 string_file_diff(@resource[:path], self.should)