I have an execute resource whose command can return two possible acceptable values.
I want to write an execute resource like so:
execute "Remove default RabbitMQ user" do
command "/usr/sbin/rabbitmqctl delete_user guest"
return [0, 2]
If the user exists, it will return 0. If the user does not exist, it will return 2, but I don't really care because it's easier to just run the command and fail than check for the existence of the user first.