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.
This commit is contained in:
Shireesh Anjal
2022-08-28 13:08:11 -07:00
committed by GitHub
parent af1d0ee6da
commit 70d43540e5
+2 -1
View File
@@ -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 {