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

Autorequire can create circular dependencies when ensure => absent

    XMLWordPrintable

Details

    • Bug
    • Status: Accepted
    • Normal
    • Resolution: Unresolved
    • None
    • None
    • None
    • Coremunity

    Description

      The `registry_key` auto-require functionality doesn't appear to work with `->`
      style relationships when `ensure => absent`. This results in a circular dependency:

          Registry_key { ensure => absent }
          registry_key { '#{keypath}\\SubKey1': }
          -> registry_key { '#{keypath}\\SubKeyToPurge': }
          -> registry_key { '#{keypath}': }
      

      But this does not:

          registry_key { '#{keypath}\\SubKey1': }
          registry_key { '#{keypath}\\SubKeyToPurge': }
          registry_key { '#{keypath}':
            require => Registry_key['#{keypath}\\SubKeyToPurge', '#{keypath}\\SubKey1'],
          }
      

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              redmine.exporter redmine.exporter
              Votes:
              4 Vote for this issue
              Watchers:
              9 Start watching this issue

              Dates

                Created:
                Updated:

                Zendesk Support