Skip to content

Commit

Permalink
Fix support callhome status command (minio#4222)
Browse files Browse the repository at this point in the history
Because of recent changes in the way config is parsed in `mc`, we need
to pass `madmin.Default` as the target when looking for the callhome
config.
  • Loading branch information
anjalshireesh authored and adfost committed Oct 28, 2022
1 parent e1713e9 commit 14f3bca
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion cmd/support-callhome.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ package cmd
import (
"github.com/minio/cli"
json "github.com/minio/colorjson"
"github.com/minio/madmin-go"
"github.com/minio/mc/pkg/probe"
"github.com/minio/pkg/console"
)
Expand Down Expand Up @@ -78,7 +79,7 @@ func (s supportCallhomeMessage) JSON() string {
}

func isSupportCallhomeEnabled(alias string) bool {
return isFeatureEnabled(alias, "callhome", "callhome")
return isFeatureEnabled(alias, "callhome", madmin.Default)
}

func mainCallhome(ctx *cli.Context) error {
Expand Down

0 comments on commit 14f3bca

Please sign in to comment.