We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8aa4f50 commit 45ddf36Copy full SHA for 45ddf36
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