Issue #3698 has been updated by Daniel Pittman.

Target version changed from 2.7.x to 2.7.12


----------------------------------------
Feature #3698: messages sometimes include exec command where exec title is 
expected
https://projects.puppetlabs.com/issues/3698#change-57165

Author: Alan Barrett
Status: Closed
Priority: Normal
Assignee: 
Category: error reporting
Target version: 2.7.12
Affected Puppet version: 0.25.4
Keywords: 
Branch: 


When an exec fails, and other resources require the exec, then the other 
resources are skipped because of failed dependencies.  This is expected.  
However, the messages on the client include the exec command where the exec 
title is expected.

Given a manifest like this:
<pre>
exec { "nice short title":
    command => "complex command;
continuing over multiple lines",
}

file { "/dir/myfile":
    require => Exec["nice short title"],
}
</pre>

When the exec fails, messages on the client look like this:
<pre>
notice: //myclass/Exec[nice short title]/returns: {error message}
err: //myclass/Exec[nice short title]/returns: change from notrun to 0 failed: 
complex command;
continuing over multiple lines
 returned 255 instead of one of [0] at filename:line_number
notice: //myclass/File[/dir/myfile]: Dependency Exec[complex command;
continuing over multiple lines] has 1 failures
warning: //myclass/File[/dir/myfile]: Skipping because of failed dependencies
</pre>

I would like the second last line to say "Dependency Exec[nice short title] has 
1 failure"


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