Skip to content

Conversation

@seanmil
Copy link
Collaborator

@seanmil seanmil commented Jul 25, 2023

Summary

Add new stdlib::has_function function to test for function availability.

Additional Context

The old is_function_available function was deprecated for quite some time and removed.
It did not support testing for availability of modern functions, only 3.x style. This new
function fully supports the various types of functions and restores the ability to
test if certain functions are available.

Checklist

  • 🟢 Spec tests.
  • 🟢 Acceptance tests.
  • Manually verified. (For example puppet apply)

Add a new function to test for function availability in the
Puppet runtime, replacing the deprecated and removed
is_function_available with support for legacy and modern
functions.
Copy link
Collaborator

@smortex smortex left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks great!

@seanmil seanmil self-assigned this Jul 26, 2023
@seanmil seanmil merged commit 4cff96c into puppetlabs:main Jul 26, 2023
@seanmil seanmil deleted the add_has_function branch July 26, 2023 13:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants