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 275e6f9 commit 47ab296Copy full SHA for 47ab296
lib/puppet/provider/postgresql_psql/ruby.rb
@@ -30,7 +30,7 @@ def run_sql_command(sql)
30
private
31
32
def get_environment
33
- environment = resource[:connect_settings] || {}
+ environment = (resource[:connect_settings] || {}).dup
34
if envlist = resource[:environment]
35
envlist = [envlist] unless envlist.is_a? Array
36
envlist.each do |setting|
@@ -55,7 +55,6 @@ def get_environment
55
56
def run_command(command, user, group, environment)
57
command = command.join ' '
58
- environment = get_environment
59
if Puppet::PUPPETVERSION.to_f < 3.0
60
require 'puppet/util/execution'
61
Puppet::Util::Execution.withenv environment do
0 commit comments