We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents cebcd85 + 45ddf36 commit 18d0728Copy full SHA for 18d0728
lib/puppet/provider/postgresql_conf/ruby.rb
@@ -80,7 +80,7 @@ def exists?
80
81
# remove resource if exists and is set to absent
82
def destroy
83
- entry_regex = %r{#{resource[:key]}.*=.*#{resource[:value]}}
+ entry_regex = %r{^\s*#{resource[:key]}\s*=}
84
lines = File.readlines(resource[:target])
85
86
lines.delete_if do |entry|
0 commit comments