Issue #14652 has been updated by lee hanel.

Support Urls deleted (https://support.puppetlabs.com/tickets/1048)

Shouldn't a dependency cycle failure cause an exit status other that zero?

this is running on master after the above branch was merged.


    bundle exec puppet apply  --detailed-exitcodes -e 'notify { "foo": require 
=> Notify[foo] }'
    Warning: Could not retrieve fact fqdn
    Error: Could not apply complete catalog: Found 1 dependency cycle:
    (Notify[foo] => Notify[foo])
    Try the '--graph' option and opening the resulting '.dot' file in 
OmniGraffle or GraphViz
    Notice: Finished catalog run in 0.01 seconds
    $ echo $?
    0


----------------------------------------
Bug #14652: Resource requiring self fails to apply but does not generate an 
error, even with --debug
https://projects.puppetlabs.com/issues/14652#change-92846

* Author: David Gwilliam
* Status: Merged - Pending Release
* Priority: Normal
* Assignee: Andrew Parker
* Category: dependency graph
* Target version: 3.3.0
* Affected Puppet version: 2.7.12
* Keywords:  customer
* Branch: https://github.com/puppetlabs/puppet/pull/1703
----------------------------------------
    class test {
      file { '/tmp/file1.txt':
        ensure => present,
        require => File['/tmp/file1.txt'],
      }
      file { '/tmp/file2.txt':
        ensure => present,
        require => File['/tmp/file1.txt'],
      }
    }

The above code generates an obvious cyclical dependency, but does not return an 
error on `puppet agent -t --debug`, though the following is seen:  
    debug: /Stage[main]/Test/File[/tmp/file1.txt]/require: requires 
File[/tmp/file1.txt]


-- 
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