Issue #9932 has been updated by Josh Cooper. Description updated
---------------------------------------- Bug #9932: New relationship syntax does not fail unrealized required virtual ressources https://projects.puppetlabs.com/issues/9932 Author: Bruno Leon Status: Accepted Priority: Normal Assignee: Category: language Target version: Affected Puppet version: 2.6.0 Keywords: virtual require Branch: I found out that the new relationship syntax does not fail when it should, given that a resource has been declared virtual but not realized. <pre> define test() { notify { $name: } } class titi { notify { $name: } Test['toto'] -> Class['titi'] } node 'test'{ @test { 'toto': } include titi } info: Applying configuration version '1317916416' notice: titi notice: /Stage[main]/Titi/Notify[titi]/message: defined 'message' as 'titi' notice: Finished catalog run in 0.65 seconds </pre> Using the standard syntax, Puppet fails as expected. <pre> define test() { notify { $name: } } class titi { notify { $name: require => Test['toto'] } } node 'test'{ @test { 'toto': } include titi } err: Failed to apply catalog: Could not find dependency Test[toto] for Notify[titi] at /etc/puppet/environments/production/manifests/nodes.pp:64 </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.
