From 99e10100948421913eb7deecb5bed25d6e15fd72 Mon Sep 17 00:00:00 2001 From: Simon Hoenscheid Date: Wed, 23 Aug 2023 22:49:21 +0200 Subject: [PATCH] fix rubocop --- lib/puppet/provider/postgresql_conf/ruby.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/puppet/provider/postgresql_conf/ruby.rb b/lib/puppet/provider/postgresql_conf/ruby.rb index f83a7d8e4e..d1f9218e70 100644 --- a/lib/puppet/provider/postgresql_conf/ruby.rb +++ b/lib/puppet/provider/postgresql_conf/ruby.rb @@ -22,7 +22,7 @@ def parse_config line_number = index + 1 matches = line.match(active_values_regex) if matches - attributes_hash = { line_number: line_number, key: matches[:key], ensure: 'present', value: matches[:value].gsub("'", ''), comment: matches[:comment] } + attributes_hash = { line_number: line_number, key: matches[:key], ensure: 'present', value: matches[:value].delete("'"), comment: matches[:comment] } active_settings.push(attributes_hash) end end