Skip to content

Commit bb1d6a5

Browse files
Fix cluster deletion
1 parent 7a45399 commit bb1d6a5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

bin/delete_cluster.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ else
9191
mysql -u $ENV_MYSQL_USER -p$ENV_MYSQL_PASS -e "use $ENV_MYSQL_DATABASE_NAME; UPDATE cluster_log.nodes SET started_deletion='$start_timestamp',deleted='$end_timestamp',state='deleted' WHERE cluster_id='$cluster_id'" >> $logs_folder/delete_${cluster_id}.log 2>&1
9292
fi
9393
nodes=`scontrol show topology $1 2>&1 | grep Nodes | awk '{print $NF}' | sed "s/Nodes=//"`
94-
if [ `echo $nodes | wc -w` > 0 ]
94+
if [[ `echo $nodes | wc -w` > 0 ]]
9595
then
9696
for node in `scontrol show hostname $nodes 2>&1`
9797
do

0 commit comments

Comments
 (0)