Skip to content

Commit 99800c9

Browse files
author
Morgan Haskel
committed
Merge pull request puppetlabs#667 from bmjen/4.4.2-prep
4.4.2 prep
2 parents 9063dd5 + e3c707c commit 99800c9

File tree

3 files changed

+14
-2
lines changed

3 files changed

+14
-2
lines changed

CHANGELOG.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,10 @@
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
310
This release fixes RHEL 7 & Fedora with manage_package_repo switched on.

lib/puppet/provider/postgresql_psql/ruby.rb

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff 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

metadata.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
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",

0 commit comments

Comments
 (0)