Skip to content

Commit 608aa05

Browse files
openshift-cherrypick-robotblaqkube
andauthored
[v1.3.x] Fix panic with "operator-sdk bundle validate" and OCI (#4386)
Co-authored-by: blaqkube <[email protected]>
1 parent bebbbf9 commit 608aa05

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
entries:
2+
- description: Fix panic when "operator-sdk bundle validate" fails
3+
kind: bugfix
4+
breaking: false

internal/cmd/operator-sdk/bundle/validate/validate.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ func (c bundleValidateCmd) run(logger *log.Entry, bundleRaw string) (res *intern
111111
return res, err
112112
}
113113
defer func() {
114-
if err = os.RemoveAll(c.directory); err != nil {
114+
if err := os.RemoveAll(c.directory); err != nil {
115115
logger.Errorf("Error removing temp bundle dir: %v", err)
116116
}
117117
}()

0 commit comments

Comments
 (0)