Uploaded image for project: 'Puppet'
  1. Puppet
  2. PUP-9137

Scope#function_xxx loaded 3x function will be overwritten by 4x load

    XMLWordPrintable

Details

    • Bug
    • Status: Closed
    • Normal
    • Resolution: Fixed
    • None
    • PUP 5.5.7, PUP 6.0.1
    • None
    • None
    • Platform Core
    • Needs Assessment
    • Bug Fix
    • Hide
      3x functions loaded as side effect of calling `function_<name>` (in Ruby) were again loaded when called from the Puppet Language or when using `call_function` (in Ruby) from another function. This caused warnings for overwrite of already loaded functions to appear in some circumstances (and it impacted performance when reloading).
      Show
      3x functions loaded as side effect of calling `function_<name>` (in Ruby) were again loaded when called from the Puppet Language or when using `call_function` (in Ruby) from another function. This caused warnings for overwrite of already loaded functions to appear in some circumstances (and it impacted performance when reloading).
    • Needs Assessment

    Description

      if a 3.x function is first loaded from within another function (via a function_xxx() call), it is then reloaded if it is called from the puppet language or via Scope#call_function

      Reported in PE-25136

      This is a consequence of function loading being changed in 5.5.7 and 6.0.0 to allow any module to call a function in any other.

      Attachments

        Activity

          People

            Unassigned Unassigned
            henrik.lindberg Henrik Lindberg
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Zendesk Support