Skip to content

Commit

Permalink
Fix fmt.Printf error due to wrong var used
Browse files Browse the repository at this point in the history
Signed-off-by: cmoulliard <[email protected]>
  • Loading branch information
cmoulliard committed Nov 14, 2024
1 parent aca1830 commit 0dad331
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions pkg/cmd/get/clusters.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,6 @@ var ClustersCmd = &cobra.Command{
PreRunE: preClustersE,
}

var kubeCfgPath string

func preClustersE(cmd *cobra.Command, args []string) error {
return helpers.SetLogger()
}
Expand Down Expand Up @@ -73,12 +71,12 @@ func list(cmd *cobra.Command, args []string) error {
}

// Search about the idp cluster within the kubeconfig file and show information
cluster, found := findClusterByName(config, "kind-"+cluster)
c, found := findClusterByName(config, "kind-"+cluster)
if !found {
fmt.Printf("Cluster %q not found\n", cluster)
fmt.Printf("Cluster not found: %s\n", cluster)
} else {
fmt.Printf("URL of the kube API server: %s\n", cluster.Server)
fmt.Printf("TLS Verify: %t\n", cluster.InsecureSkipTLSVerify)
fmt.Printf("URL of the kube API server: %s\n", c.Server)
fmt.Printf("TLS Verify: %t\n", c.InsecureSkipTLSVerify)
}
fmt.Println("----------------------------------------")
}
Expand Down

0 comments on commit 0dad331

Please sign in to comment.