We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2339ea8 commit 294e6e8Copy full SHA for 294e6e8
lib/puppet/provider/file_line/ruby.rb
@@ -14,7 +14,7 @@ def exists?
14
match_count = count_matches(new_match_regex)
15
if resource[:append_on_no_match].to_s == 'false'
16
found = true
17
- elsif resource[:replace].to_s == 'true'
+ elsif resource[:replace].to_s == 'true' && resource[:match_for_absence].to_s != 'true'
18
found = lines_count > 0 && lines_count == match_count
19
else
20
found = match_count > 0
0 commit comments