Skip to content

Commit

Permalink
fix: filter out the header from s3 cluster status command
Browse files Browse the repository at this point in the history
  • Loading branch information
almogaganweka authored and assafgi committed Sep 30, 2024
1 parent 8f4ee91 commit 9b17c33
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/protocol_gateways/setup_s3.sh
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ function retry_create_s3_cluster {
return 0
}

if [[ $(weka s3 cluster status) ]]; then
if [[ $(weka s3 cluster status |grep -v 'IP') ]]; then
check_cluster_status
if (( all_hosts > 0 && not_ready_hosts == 0 && all_hosts < cluster_size )); then
echo "$(date -u): S3 cluster already exists, adding current container to it"
Expand Down

0 comments on commit 9b17c33

Please sign in to comment.