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:
@@ -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)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user