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.
2 parents 00322bd + c3d853d commit c45e24bCopy full SHA for c45e24b
lib/puppet/provider/postgresql_psql/ruby.rb
@@ -50,7 +50,12 @@ def get_environment
50
def run_command(command, user, group)
51
command = command.join ' '
52
environment = get_environment
53
- if Puppet::PUPPETVERSION.to_f < 3.4
+ if Puppet::PUPPETVERSION.to_f < 3.0
54
+ require 'puppet/util/execution'
55
+ Puppet::Util::Execution.withenv environment do
56
+ Puppet::Util::SUIDManager.run_and_capture(command, user, group)
57
+ end
58
+ elsif Puppet::PUPPETVERSION.to_f < 3.4
59
Puppet::Util.withenv environment do
60
Puppet::Util::SUIDManager.run_and_capture(command, user, group)
61
end
0 commit comments