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

Using undefined variable as class parameter default fails in future evaluator

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Normal
    • Resolution: Fixed
    • Affects Version/s: PUP 3.5.0 RC
    • Fix Version/s: PUP 3.6.0
    • Component/s: Compiler
    • Labels:
      None
    • Template:
    • Story Points:
      1
    • Sprint:
      Week 2014-4-02 to 2014-4-09, Week 2014-4-09 to 2014-4-16

      Description

      The following manifest fails in the future evaluator:

      class a ($b=$x) {notify{$b:}}
      include a
      

      I get the following output (also not the lack of line numbers):

      Error: Evaluation Error: Error while evaluating a Function Call, Received incomplete information - no value provided for parameter b on node test.dalen.cloud.spotify.net
      Error: Evaluation Error: Error while evaluating a Function Call, Received incomplete information - no value provided for parameter b on node test.dalen.cloud.spotify.net
      

      In the 3.x evaluator this prints undef as expected:

      Notice: Compiled catalog for test.dalen.cloud.spotify.net in environment production in 0.06 seconds
      Notice: undef
      Notice: /Stage[main]/A/Notify[undef]/message: defined 'message' as 'undef'
      Notice: Finished catalog run in 0.02 seconds
      

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              Unassigned Unassigned
              Reporter:
              dalen Erik Dalén
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:

                  Zendesk Support