OCF RA: accept 1 as valid exit code from "rabbitmqctl status"

It may return 1 if the server is not completely running yet, and we
don't want pacemaker to treat that as a complete unexpected error.
This commit is contained in:
Vincent Untz 2017-03-29 21:45:52 +02:00 committed by Michael Klishin
parent 35bba6f8ad
commit 49f4c4b566
No known key found for this signature in database
GPG Key ID: D1A1B77724CE35D5
1 changed files with 1 additions and 1 deletions

View File

@ -256,7 +256,7 @@ rabbitmqctl_action() {
ocf_log debug "RabbitMQ server is running normally"
return $OCF_SUCCESS
;;
2)
1|2)
ocf_log debug "RabbitMQ server is not running"
return $OCF_NOT_RUNNING
;;