Issue #14518 has been updated by Josh Cooper.

Project changed from Puppet Modules to Puppet
Target version deleted (registry 0.x)


----------------------------------------
Bug #14518: Registry - Autorequire can create circular dependencies when ensure 
=> absent
https://projects.puppetlabs.com/issues/14518#change-62977

Author: Josh Cooper
Status: Accepted
Priority: Normal
Assignee: Josh Cooper
Category: 
Target version: 
Affected Puppet version: 
Keywords: registry autorequire
Branch: 


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

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

But this does not:

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



-- 
You have received this notification because you have either subscribed to it, 
or are involved in it.
To change your notification preferences, please click here: 
http://projects.puppetlabs.com/my/account

-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Bugs" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/puppet-bugs?hl=en.

Reply via email to