Some variables fix
-remove unused variables -use $rc instead of rc_amqp since we perform one check
This commit is contained in:
parent
968a448672
commit
f9307f759a
@ -203,9 +203,6 @@ quantum_l3_agent_status() {
|
||||
quantum_l3_agent_monitor() {
|
||||
local rc
|
||||
local pid
|
||||
local rc_db
|
||||
local rc_amqp
|
||||
local network_db_check
|
||||
local network_amqp_check
|
||||
|
||||
quantum_l3_agent_status
|
||||
@ -221,9 +218,9 @@ quantum_l3_agent_monitor() {
|
||||
pid=`cat $OCF_RESKEY_pid`
|
||||
# check the connections according to the PID
|
||||
network_amqp_check=`netstat -punt | grep -s "$OCF_RESKEY_quantum_server_port" | grep -s "$pid" | grep -qs "ESTABLISHED"`
|
||||
rc_amqp=$?
|
||||
if [ $rc_amqp -ne 0 ]; then
|
||||
ocf_log err "Quantum L3 Server is not connected to the Quantum server : Quantum connection test returned $rc_amqp"
|
||||
rc=$?
|
||||
if [ $rc -ne 0 ]; then
|
||||
ocf_log err "Quantum L3 Server is not connected to the Quantum server: $rc"
|
||||
return $OCF_NOT_RUNNING
|
||||
fi
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user