Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
sauterp committed Mar 8, 2024
1 parent e3de806 commit 0cf9178
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions internal/integ/cluster/utils.go
Original file line number Diff line number Diff line change
Expand Up @@ -64,13 +64,12 @@ func (c *Cluster) getClusterID() (exov3.UUID, error) {
return "", err
}

for _, cluster := range clusterList.SKSClusters {
if cluster.Name == *flags.ClusterName {
return cluster.ID, nil
}
cluster, err := clusterList.FindSKSCluster(*flags.ClusterName)
if err != nil {
return "", err
}

return "", fmt.Errorf("failed to find cluster named %q", *flags.ClusterName)
return cluster.ID, nil
}

func (c *Cluster) getCluster() (*exov3.SKSCluster, error) {
Expand Down

0 comments on commit 0cf9178

Please sign in to comment.