diff --git a/models/cluster.x-k8s.io.machine.js b/models/cluster.x-k8s.io.machine.js index 552be17467..646d50f632 100644 --- a/models/cluster.x-k8s.io.machine.js +++ b/models/cluster.x-k8s.io.machine.js @@ -155,7 +155,7 @@ export default class CapiMachine extends SteveModel { const conditions = get(this, 'status.conditions'); const reasonMessage = (findBy(conditions, 'type', 'InfrastructureReady') || {}).reason; - if (reasonMessage === 'DeletionFailed') { + if (reasonMessage === 'DeleteError') { return true; }