Fixed if statement
This commit is contained in:
parent
a37510d49c
commit
968a448672
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue