fix kubeconfig issue

This commit is contained in:
behrooz
2025-08-27 18:00:14 +03:30
parent 821ead675f
commit 36a36a232f

View File

@@ -461,7 +461,7 @@ func getClusterConfig(clustername string) (string, error) {
}
decoded, err := base64.StdEncoding.DecodeString(existsCluster.Cluster_config)
if err != nil {
if err == nil {
return string(decoded), nil
}
return "", err