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

types generated by puppet generate types with title patterns are handled the wrong way

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Normal
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: PUP 4.10.11, PUP 5.3.5, PUP 5.4.0
    • Component/s: None
    • Labels:
      None
    • Template:
      PUP Bug Template
    • Acceptance Criteria:
      Hide

      It should be possible to generate types for the java_ks module, and compile a manifest where the java_ks title contains multiple namevars (and whose regex is not the default one). See https://github.com/puppetlabs/puppetlabs-java_ks/blob/master/lib/puppet/type/java_ks.rb#L184-L207

      Show
      It should be possible to generate types for the java_ks module, and compile a manifest where the java_ks title contains multiple namevars (and whose regex is not the default one). See https://github.com/puppetlabs/puppetlabs-java_ks/blob/master/lib/puppet/type/java_ks.rb#L184-L207
    • Sub-team:
    • Team:
      Platform Core
    • Sprint:
      Platform Core KANBAN
    • Method Found:
      Needs Assessment
    • Release Notes:
      Bug Fix
    • Release Notes Summary:
      When using 'puppet types generate' for environment isolation and a resource type had non default title patterns puppet would not use those.
    • QA Risk Assessment:
      Manual

      Description

      If a resource type has title patterns, it would end up using the default regular expression instead of the specified pattern. For most resource types this is the default and no problem would be noticed.

      We found this problem in code review as there was a typo in the implementation.

        Attachments

          Activity

            People

            Assignee:
            Unassigned
            Reporter:
            henrik.lindberg Henrik Lindberg
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:

                Zendesk Support