File tree 1 file changed +3
-5
lines changed
1 file changed +3
-5
lines changed Original file line number Diff line number Diff line change @@ -235,14 +235,12 @@ heat_engine_monitor() {
235
235
236
236
# Check the connections according to the PID.
237
237
# We are sure to hit the heat-engine process and not other heat process with the same connection behavior (for example heat-api)
238
- if ocf_is_true " $OCF_RESKEY_zeromq " ; then
239
238
pid=` cat $OCF_RESKEY_pid `
240
239
engine_amqp_check=` netstat -punt | grep -s " $OCF_RESKEY_amqp_server_port " | grep -s " $pid " | grep -qs " ESTABLISHED" `
241
240
rc_amqp=$?
242
- if [ $rc_amqp -ne 0 ]; then
243
- ocf_log err " Heat Engine is not connected to the AMQP server: AMQP connection test returned $rc_amqp "
244
- return $OCF_NOT_RUNNING
245
- fi
241
+ if [ $rc_amqp -ne 0 ]; then
242
+ ocf_log err " Heat Engine is not connected to the AMQP server: AMQP connection test returned $rc_amqp "
243
+ return $OCF_NOT_RUNNING
246
244
fi
247
245
248
246
ocf_log debug " OpenStack Orchestration Engine (heat-engine) monitor succeeded"
You can’t perform that action at this time.
0 commit comments