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

catalog.resource() doesn't accept "main" as a title parameter

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Normal
    • Resolution: Won't Fix
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: None
    • Labels:
      None
    • Template:
    • Sub-team:
    • Team:
      Agent
    • Story Points:
      1
    • Sprint:
      Agent 2017-06-14
    • Method Found:
      Needs Assessment
    • QA Risk Assessment:
      No Action
    • QA Risk Assessment Reason:
      Check in includes test updates for the change

      Description

      When calling catalog.resource(type, title) with the string "main" as the title parameter, it doesn't return a resource in the catalog with that title. It appears that title is getting passed through resource.munge_type_name(), which had a special case for :main that doesn't kick in now we're using the stringified data from to_hash.

      This is triggered by PUP commit 7bbe36774; this returns title as a string in to_data_hash, where it used to be a symbol somtimes. The PDB terminus in turns calls catalog_resource with this, which then returns nil.

        Attachments

          Activity

            jsd-sla-details-panel

              People

              • Assignee:
                josh Josh Cooper
                Reporter:
                russell.mull Russell Mull
                QA Contact:
                Eric Delaney
              • Votes:
                0 Vote for this issue
                Watchers:
                4 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Zendesk Support