diff --git a/internal/common/common.go b/internal/common/common.go index 9fff5c4f6..0026fe9e8 100644 --- a/internal/common/common.go +++ b/internal/common/common.go @@ -102,9 +102,7 @@ func versionCheck() (res *CheckResponse, skip bool) { func GetRootCredentials(cmd *cobra.Command, args []string) error { clusterName := viper.GetString("flags.cluster-name") - fmt.Print(clusterName) - - cluster, err := cluster.GetCluster("jd-test-4-axmhv") + cluster, err := cluster.GetCluster(clusterName) if err != nil { progress.Error(err.Error()) return err