1
0
mirror of https://github.com/openshift/installer.git synced 2026-02-05 15:47:14 +01:00

Merge pull request #10056 from openshift-cherrypick-robot/cherry-pick-10049-to-release-4.20

[release-4.20] OCPBUGS-64595: Remove pending items on gcp no-op
This commit is contained in:
openshift-merge-bot[bot]
2025-11-12 06:41:44 +00:00
committed by GitHub

View File

@@ -448,11 +448,12 @@ func (o *ClusterUninstaller) handleOperation(ctx context.Context, op *compute.Op
}
if err != nil {
o.resetRequestID(identifier...)
if isNoOp(err) {
o.Logger.Debugf("No operation found for %s %s", resourceType, item.name)
o.deletePendingItems(item.typeName, []cloudResource{item})
return nil
}
o.resetRequestID(identifier...)
return fmt.Errorf("failed to delete %s %s: %w", resourceType, item.name, err)
}