We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 6459888 + 798f5e6 commit 2bd6c40Copy full SHA for 2bd6c40
cmd/cluster/cleanup_leaked_ec2.go
@@ -173,7 +173,14 @@ func (c *cleanup) RemediateOCPBUGS23174(ctx context.Context) error {
173
return fmt.Errorf("failed to automatically cleanup EC2 instances: %v", err)
174
}
175
176
- log.Printf("success - the cluster should be uninstalled soon")
+ switch c.cluster.State() {
177
+ case cmv1.ClusterStateError:
178
+ fallthrough
179
+ case cmv1.ClusterStateUninstalling:
180
+ log.Printf("success - cluster was in state: %s and should be uninstalled soon", c.cluster.State())
181
+ default:
182
+ log.Printf("success - cluster is in state: %s", c.cluster.State())
183
+ }
184
return nil
185
186
0 commit comments