Skip to content

Commit

Permalink
[fix]error about status cluster no offline chunkserver
Browse files Browse the repository at this point in the history
  • Loading branch information
caoxianfei1 committed Jul 26, 2023
1 parent 8dd6d55 commit dde09f7
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion tools-v2/pkg/cli/command/curvebs/status/cluster/cluster.go
Original file line number Diff line number Diff line change
Expand Up @@ -205,7 +205,11 @@ func (cCmd *ClusterCommand) buildTableRole(results []map[string]string, role str
onlineSlice = append(onlineSlice, row[cobrautil.ROW_ADDR])
}
default:
offlineSlice = append(offlineSlice, row[cobrautil.ROW_ADDR])
if role == TYPE_CHUNKSERVER {
offlineSlice = append(offlineSlice, row[cobrautil.ROW_EXTERNAL_ADDR])
} else {
offlineSlice = append(offlineSlice, row[cobrautil.ROW_ADDR])
}
}
}

Expand Down

0 comments on commit dde09f7

Please sign in to comment.