Schofield
2013-Apr-16 18:34 UTC
[Puppet Users] How to get return code of a command used in a custom provider.
When using optional_commands in a custom provider is there a means to get the return code of the execution? Something similar to "echo $?" on Linux. For example, if I define foo optional_commands :foo => ''foo'' I want to execute foo() and test if it was successful or not with in some conditional logic. -- 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 puppet-users+unsubscribe@googlegroups.com. To post to this group, send email to puppet-users@googlegroups.com. Visit this group at http://groups.google.com/group/puppet-users?hl=en. For more options, visit https://groups.google.com/groups/opt_out.
Possibly Parallel Threads
- checking puppet run status of node A during puppet run of node B
- custom provider question
- Pip provider fails on RedHat osfamily when pip not installed via RPM (Could not locate the pip command)
- username/password combo for custom provider (couchbase)
- Still problem using Chocolatey provider on Windows