mirror of https://github.com/harness/drone.git
fix: [CDE-397]: remove infra check during cde deletion (#2843)
* fix: [CDE-397]: remove infra check during cde deletionpull/3576/head
parent
5efca19288
commit
0124832ae7
|
@ -58,9 +58,8 @@ func (i infraProvisioner) triggerDeprovisionForNewProvisioning(
|
|||
gitspaceConfig.GitspaceInstance.ID, err)
|
||||
}
|
||||
|
||||
if infraProvisionedLatest.InfraStatus != enum.InfraStatusProvisioned &&
|
||||
infraProvisionedLatest.InfraStatus != enum.InfraStatusUnknown {
|
||||
return fmt.Errorf("the infrastructure with identifier %s doesn't exist", infra.Identifier)
|
||||
if infraProvisionedLatest.InfraStatus == enum.InfraStatusDestroyed {
|
||||
return nil
|
||||
}
|
||||
|
||||
err = infraProvider.Deprovision(ctx, infra)
|
||||
|
|
Loading…
Reference in New Issue