Hi,

if memory serves, --detailed-exitcode (one of the more annyoing
implications of --test) will return the number of resources that changed.

So are there any other things that puppet did during its run?

Generally, if you want to use the exit code of `puppet agent` (or apply)
to determine whether there were problems, you should avoid
--detailed-exitcode and --test.

HTH,
Felix

On 11/19/2013 04:34 AM, Amos Shapira wrote:
> 
> Puppet registers the failure as an error ("2" is not an expected exit
> code of this Exec resource) but still exits with exit status "2" (with
> --detailed-exitcode).
> I know why psql failed but that's besides the point - Puppet should have
> failed but it didn't.

-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/puppet-users/528B765F.3000803%40alumni.tu-berlin.de.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to