Fixed if statement

This commit is contained in:
Leseb 2012-09-21 11:37:49 +03:00
parent a37510d49c
commit 968a448672
1 changed files with 1 additions and 1 deletions

View File

@ -219,7 +219,7 @@ quantum_dhcp_agent_monitor() {
# check the connections according to the PID
network_amqp_check=`netstat -punt | grep -s "$OCF_RESKEY_amqp_server_port" | grep -s "$pid" | grep -qs "ESTABLISHED"`
rc=$?
if [ $rc_amqp -ne 0 ]; then
if [ $rc -ne 0 ]; then
ocf_log err "Quantum DHCP Server is not connected to the AMQP server : $rc"
return $OCF_NOT_RUNNING
fi