MODULES-1923 - Use the correct command with Puppet < 3.4

This commit is contained in:
Morgan Haskel 2015-04-09 14:21:59 -07:00
parent 8dbf982b62
commit 9723b7d040

View file

@ -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