Skip to content

replace is_function_available with stdlib::has_function #662

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions manifests/params.pp
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@
# and greping for "puppet enterprise". With Puppet 4 and PE 2015.2, there
# is no longer a "PE Puppet", and so that fact will no longer work.
# Instead check for the `is_pe` fact or if a PE provided function is available
$_is_pe = (getvar('::is_pe') or is_function_available('pe_compiling_server_version'))
$_is_pe = (getvar('::is_pe') or stdlib::has_function('pe_compiling_server_version'))
if $_is_pe {
# Calculate the default collection
$_pe_version = pe_build_version()
Expand All @@ -70,7 +70,7 @@
}
# The aio puppet-agent version currently installed on the compiling master
# (only used in PE)
if is_function_available('pe_compiling_server_aio_build') {
if stdlib::has_function('pe_compiling_server_aio_build') {
$master_agent_version = pe_compiling_server_aio_build()
} else {
$master_agent_version = undef
Expand Down