Issue #5668 has been updated by Nigel Kersten. Target version set to Telly
---------------------------------------- Bug #5668: puppet resource exits with 0 despite failing to do as commanded https://projects.puppetlabs.com/issues/5668 Author: Daniel Pittman Status: Accepted Priority: Normal Assignee: Category: ralsh Target version: Telly Affected Puppet version: development Keywords: Branch: The following 'puppet resource' invocation improperly returns 0 in my testing: ] puppet resource host test target=/tmp/whatever; echo $? notice: /Host[test]/ensure: created err: /Host[test]: Could not evaluate: ip is a required attribute for hosts host { 'test': ensure => 'present', target => '/tmp/hosts-1744' } 0 It does correctly report that there is a required attribute missing (ip), but the exit code is zero. The usual behavior of a tool like this would be to exit with an error code indicating that something did not work, so that it could be driven by other automation solutions. -- 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.
