Merge pull request #608 from mhaskel/MODULES-1923
MODULES-1923 - Use the correct command with Puppet < 3.4
This commit is contained in:
commit
89a781fe39
1 changed files with 1 additions and 2 deletions
|
@ -51,8 +51,7 @@ Puppet::Type.type(:postgresql_psql).provide(:ruby) do
|
|||
command = command.join ' '
|
||||
environment = get_environment
|
||||
if Puppet::PUPPETVERSION.to_f < 3.4
|
||||
require 'puppet/util/execution'
|
||||
Puppet::Util::Execution.withenv environment do
|
||||
Puppet::Util.withenv environment do
|
||||
Puppet::Util::SUIDManager.run_and_capture(command, user, group)
|
||||
end
|
||||
else
|
||||
|
|
Loading…
Reference in a new issue