Uploaded image for project: 'Modules'
  1. Modules
  2. MODULES-9227

Replacement for is_function_available

    XMLWordPrintable

    Details

    • Type: New Feature
    • Status: Open
    • Priority: Normal
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: stdlib
    • Labels:
      None
    • Template:
    • QA Risk Assessment:
      Needs Assessment

      Description

      stdlib has a function called is_function_available. This function was deprecated in favour of validate_legacy which is, in my opinion, not really an alternative for Puppet > 4 only setups.

      It would be great if we could get a proper replacement which works with Puppet 3x, 4x and native functions.

      Henrik Lindberg suggested to create a function "is_defined" which takes a a resources type (e.g. "function") as first parameter and a resource name (e.g. inline_epp) as second parameter.

      This would allow to extend the function slowly to all kind of resources.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              Unassigned Unassigned
              Reporter:
              baurmatt Matthias Baur
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Dates

                Created:
                Updated:

                  Zendesk Support