Skip to content

Commit 3c08ca9

Browse files
sbocinecappilon
andauthored
Ignore "release: not found" error on helm_resource destroy (#1487)
* Ignore "release: not found" error on helm_resource destroy --------- Co-authored-by: Alex Pilon <[email protected]>
1 parent 62d34d2 commit 3c08ca9

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

.changelog/1487.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
```release-note:bug
2+
`helm_release`: On destroy, do not error when release is not found
3+
```

helm/resource_release.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -865,7 +865,7 @@ func resourceReleaseDelete(ctx context.Context, d *schema.ResourceData, meta int
865865
uninstall.Timeout = time.Duration(d.Get("timeout").(int)) * time.Second
866866

867867
res, err := uninstall.Run(name)
868-
if err != nil {
868+
if err != nil && !errors.Is(err, driver.ErrReleaseNotFound) {
869869
return diag.FromErr(err)
870870
}
871871

0 commit comments

Comments
 (0)