File tree Expand file tree Collapse file tree 3 files changed +14
-2
lines changed
lib/puppet/provider/postgresql_psql Expand file tree Collapse file tree 3 files changed +14
-2
lines changed Original file line number Diff line number Diff line change 1+ ## 2015-07-07 - Supported Release 4.4.2
2+ ### Summary
3+ This release fixes a bug introduced in 4.4.0.
4+
5+ #### Bugfixes
6+ - Fixes ` withenv ` execution under Puppet 2.7. (MODULES-2185)
7+
18## 2015-07-01 - Supported Release 4.4.1
29### Summary
310This release fixes RHEL 7 & Fedora with manage_package_repo switched on.
Original file line number Diff line number Diff line change @@ -50,7 +50,12 @@ def get_environment
5050 def run_command ( command , user , group )
5151 command = command . join ' '
5252 environment = get_environment
53- if Puppet ::PUPPETVERSION . to_f < 3.4
53+ 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
5459 Puppet ::Util . withenv environment do
5560 Puppet ::Util ::SUIDManager . run_and_capture ( command , user , group )
5661 end
Original file line number Diff line number Diff line change 11{
22 "name" : " puppetlabs-postgresql" ,
3- "version" : " 4.4.1 " ,
3+ "version" : " 4.4.2 " ,
44 "author" : " Inkling/Puppet Labs" ,
55 "summary" : " Offers support for basic management of PostgreSQL databases." ,
66 "license" : " Apache-2.0" ,
You can’t perform that action at this time.
0 commit comments