Skip to content

Commit

Permalink
fix(cluster/display): don't print dashboardAddr if none or auto (#1054)
Browse files Browse the repository at this point in the history
  • Loading branch information
9547 authored Jan 12, 2021
1 parent df76e55 commit d96ff5c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/cluster/manager/display.go
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ func (m *Manager) Display(name string, opt operator.Options) error {
if t, ok := topo.(*spec.Specification); ok {
var err error
dashboardAddr, err = t.GetDashboardAddress(tlsCfg, masterActive...)
if dashboardAddr != "" && err == nil {
if err == nil && !set.NewStringSet("", "auto", "none").Exist(dashboardAddr) {
schema := "http"
if tlsCfg != nil {
schema = "https"
Expand Down

0 comments on commit d96ff5c

Please sign in to comment.