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

tag collecting is broken in 3.7

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Won't Fix
    • Affects Version/s: PUP 3.7.5
    • Fix Version/s: PUP 3.6.2
    • Component/s: None
    • Labels:
      None
    • Template:

      Description

      when using a collector to get resources tagged with a certain value if the 'calling' class has the same name ALL resources are collected.

      3.6 this was not the case, nor do I see how it is either useful or makes sense to be the case.

      for example

      ====== site.pp ======
      node default {
        include noticegroups::matches
      }
      ====== modules/noticegroups/manifests/matches.pp ======
      class noticegroups::matches {
        include notices
        Notices::Anotice <| tag == matches |>
      }
      ====== modules/notices/manifests/anotice.pp ======
      define notices::anotice {
        notify { $title: }
      }
      ====== modules/notices/manifests/data.pp ======
      class notices::data {
        @notices::anotice { 'meant to be made': tag=>['matches'], }
        @notices::anotice { 'NOT meant to be made': tag=>['doesnotmatch'], }
      }
      ====== modules/notices/manifests/init.pp ======
      class notices {
        include notices::data
      }
      

      under 3.6 I get just the

      notices::anotice { 'meant to be made' } 

      realized , under 3.7 both are realized

      if I change noticegroups::matches to noticegroups::iwantmatches I get just the one realized

      This is broken behaviour imho

        Attachments

          Activity

            People

            Assignee:
            orangepeel Neil Prockter
            Reporter:
            orangepeel Neil Prockter
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:

                Zendesk Support