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

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

    XMLWordPrintable

Details

    • Bug
    • Status: Closed
    • Normal
    • Resolution: Fixed
    • None
    • PUP 3.7.0
    • Compiler
    • None
    • 1
    • 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

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

              Dates

                Created:
                Updated:
                Resolved:

                Zendesk Support