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+unsubscr...@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.