Skip to content

Commit

Permalink
Merge pull request #438 from bastelfreak/is_pe
Browse files Browse the repository at this point in the history
wrap is_pe fact in fact() method to fail safely if it isn't present
  • Loading branch information
bastelfreak authored Jul 5, 2018
2 parents 39e5a8e + 57fb516 commit 0dfc213
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 5 deletions.
4 changes: 1 addition & 3 deletions .fixtures.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
fixtures:
repositories:
stdlib:
repo: "https://github.com/puppetlabs/puppetlabs-stdlib.git"
ref: "4.15.0"
stdlib: "https://github.com/puppetlabs/puppetlabs-stdlib.git"
ruby: "https://github.com/puppetlabs/puppetlabs-ruby.git"
gcc: "https://github.com/puppetlabs/puppetlabs-gcc.git"
pe_gem: "https://github.com/puppetlabs/puppetlabs-pe_gem.git"
Expand Down
2 changes: 1 addition & 1 deletion manifests/params.pp
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@
# We check for the function right now instead of $::pe_server_version
# which does not get populated on agent nodes as some users use r10k
# with razor see https://github.com/acidprime/r10k/pull/219
if $::is_pe == true or $::is_pe == 'true' {
if fact('is_pe') == true or fact('is_pe') == 'true' {
# < PE 4
$is_pe_server = true
}elsif is_function_available('pe_compiling_server_version') {
Expand Down
2 changes: 1 addition & 1 deletion metadata.json
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@
"dependencies": [
{
"name": "puppetlabs/stdlib",
"version_requirement": ">= 4.15.0 < 5.0.0"
"version_requirement": ">= 4.19.0 < 5.0.0"
},
{
"name": "puppetlabs/ruby",
Expand Down

0 comments on commit 0dfc213

Please sign in to comment.