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

Class inheritance behaving incorrectly in the future parser

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Blocker
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: PUP 3.7.0
    • Component/s: Compiler
    • Labels:
      None
    • Template:
    • Story Points:
      1
    • Sprint:
      2014-08-20

      Description

      Erik Dalén commented on PUP-121 with a problem that he uncovered. It looks like class inheritance is encountering problems in the future parser.

      When I'm testing master atm with future parser:

      class bar { notice("This is class $name") }
      class foo::bar { notice("This is class $name") }
      class foo inherits bar { notice("This is class $name") }
       
      include foo
       
      $ puppet apply --parser=future test.pp
      Notice: Scope(Class[Foo::Bar]): This is class foo::bar
      Notice: Scope(Class[Foo]): This is class foo
      Error: Could not find class foo on node valentina.local
      Error: Could not find class foo on node valentina.local
      

      So, you get both two of the three classes and then it complains it couldn't find a third class (that it already included)

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                andy Andrew Parker
                QA Contact:
                Kurt Wall
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Zendesk Support