Issue #20715 has been reported by Diego Morales.

----------------------------------------
Bug #20715: A resource requiring itself fails silently, no error or warning 
generated
https://projects.puppetlabs.com/issues/20715

* Author: Diego Morales
* Status: Unreviewed
* Priority: Low
* Assignee: 
* Category: 
* Target version: 
* Affected Puppet version: 3.1.1
* Keywords: 
* Branch: 
----------------------------------------
If someone by mistake makes a resource requires itself, the resource does not 
get applied, and no warning or error is reported. Dependent resources also 
"fail" silently. Not a very bright thing to do, but might happen by mistake, 
pass sometime unoticed and/or be annoying to debug if happens inside of a 
somewhat complex manifest. It would be nice to get an error thrown.

Example code (just 'Hey there!' is printed): 

<pre>
notify { 'I require myself':
  require => Notify['I require myself'],
}
notify { 'I fail silently':
  require => Notify['I require myself'],
}
notify { 'Hey there!': }
</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 unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/puppet-bugs?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to