From a64491e101feeaf68735a20c204d06993ba531e5 Mon Sep 17 00:00:00 2001 From: Shireesh Anjal <355479+anjalshireesh@users.noreply.github.com> Date: Mon, 29 Aug 2022 01:38:11 +0530 Subject: [PATCH] Fix `support callhome status` command (#4222) 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. --- cmd/support-callhome.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/cmd/support-callhome.go b/cmd/support-callhome.go index 0a51e9be..dbdafdd2 100644 --- a/cmd/support-callhome.go +++ b/cmd/support-callhome.go @@ -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" ) @@ -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 {