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

Class inheritance behaving incorrectly in the future parser

    XMLWordPrintable

Details

    • Bug
    • Status: Closed
    • Blocker
    • Resolution: Fixed
    • None
    • PUP 3.7.0
    • Compiler
    • None

    Description

      dalen 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

              Unassigned Unassigned
              andy Andrew Parker
              Kurt Wall Kurt Wall
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Zendesk Support