Skip to content

Commit

Permalink
cluster: add missing DeleteCluster call
Browse files Browse the repository at this point in the history
  • Loading branch information
Mate Ory committed Dec 10, 2018
1 parent 0f3b69b commit d419e67
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions cmd/cluster.go
Original file line number Diff line number Diff line change
Expand Up @@ -146,6 +146,11 @@ func ClusterDelete(cmd *cobra.Command, args []string) {
log.Fatal("deletion cancelled")
}
}
if cluster, _, err := pipeline.ClustersApi.DeleteCluster(ctx, orgId, id, nil); err != nil {
logAPIError("get cluster", err, id)
} else {
log.Printf("Deleting cluster %v", cluster)
}
if cluster, _, err := pipeline.ClustersApi.GetCluster(ctx, orgId, id); err != nil {
logAPIError("get cluster", err, id)
} else {
Expand Down

0 comments on commit d419e67

Please sign in to comment.