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

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

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Normal
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: PUP 5.5.7, PUP 6.0.1
    • Component/s: None
    • Labels:
      None
    • Template:
    • Team:
      Platform Core
    • Method Found:
      Needs Assessment
    • Release Notes:
      Bug Fix
    • Release Notes Summary:
      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).
    • QA Risk Assessment:
      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

            jsd-sla-details-panel

              People

              • Assignee:
                Unassigned
                Reporter:
                henrik.lindberg Henrik Lindberg
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: