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

creating a resource override for a Class fails (future parser)

    Details

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

      Description

      Class[a] { x => 'the default' }
      

      Results in the error:

      Error: Evaluation Error: Error while evaluating a Resource Override, undefined method `type_name' for Puppet::Pops::Types::PHostClassType:Puppet::Pops::Types::PHostClassType at /Users/henrik/git/puppet/bar.pp:4:1 on node henriks-macbook-pro.local
      /Users/henrik/git/puppet/lib/puppet/pops/evaluator/runtime3_support.rb:331:in `block in create_resource_overrides'
      

      The method in question should detect that a PHostClassType is given and use the type_name "class".

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                andy Andrew Parker
                Reporter:
                henrik.lindberg Henrik Lindberg
              • Votes:
                0 Vote for this issue
                Watchers:
                4 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Zendesk Support