diff --git a/ocf/heat-engine b/ocf/heat-engine index df28a45..7b24743 100644 --- a/ocf/heat-engine +++ b/ocf/heat-engine @@ -235,14 +235,12 @@ heat_engine_monitor() { # Check the connections according to the PID. # We are sure to hit the heat-engine process and not other heat process with the same connection behavior (for example heat-api) - if ocf_is_true "$OCF_RESKEY_zeromq"; then pid=`cat $OCF_RESKEY_pid` engine_amqp_check=`netstat -punt | grep -s "$OCF_RESKEY_amqp_server_port" | grep -s "$pid" | grep -qs "ESTABLISHED"` rc_amqp=$? - if [ $rc_amqp -ne 0 ]; then - ocf_log err "Heat Engine is not connected to the AMQP server: AMQP connection test returned $rc_amqp" - return $OCF_NOT_RUNNING - fi + if [ $rc_amqp -ne 0 ]; then + ocf_log err "Heat Engine is not connected to the AMQP server: AMQP connection test returned $rc_amqp" + return $OCF_NOT_RUNNING fi ocf_log debug "OpenStack Orchestration Engine (heat-engine) monitor succeeded"