OCF RA: Fix syntax error

(cherry picked from commit a9b4a4ff97a96e798de51933fc44f61aa6bc88a3)
This commit is contained in:
Vincent Untz 2017-12-13 20:51:32 +01:00 committed by Michael Klishin
parent 7e93369f0c
commit ea745e62c4
No known key found for this signature in database
GPG Key ID: D1A1B77724CE35D5
1 changed files with 1 additions and 1 deletions

View File

@ -1608,7 +1608,7 @@ get_monitor() {
ocf_log info "${LH} comparing us (start time: $our_start_time, score: $new_score) with $node (start time: $node_start_time, score: $node_score)"
if [ $node_start_time -ne 0 -a $node_score -ne 0 -a $node_start_time -lt $our_start_time ]; then
new_score=$((node_score - 10 < new_score ? node_score - 10 : new_score ))
elif [ $node_start_time -ne 0 -a $node_score -ne 0 -a $node_start_time -eq $our_start_time ]
elif [ $node_start_time -ne 0 -a $node_score -ne 0 -a $node_start_time -eq $our_start_time ]; then
# Do not get promoted if the other node is already master and we have the same start time
if is_master $node; then
new_score=$((node_score - 10 < new_score ? node_score - 10 : new_score ))