Skip to content

Commit f8a8023

Browse files
authored
Fix incorrect err name (#74)
Issue #, if available: Controller shuts down if calling `ACL` update while `state` of `ACL` is not `active`. Description of changes: One of error name doesn't match its return value. Correct it to match return value. By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
1 parent 66112a6 commit f8a8023

File tree

3 files changed

+5
-7
lines changed

3 files changed

+5
-7
lines changed

apis/v1alpha1/ack-generate-metadata.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
ack_generate_info:
2-
build_date: "2023-03-09T05:24:49Z"
2+
build_date: "2023-03-13T22:29:26Z"
33
build_hash: 910a8e0744a99c5c87d8c1615926985215a60d8c
44
go_version: go1.19
55
version: v0.24.3

pkg/resource/acl/sdk.go

Lines changed: 2 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

templates/hooks/acl/sdk_update_pre_build_request.go.tpl

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
1-
validationErr := rm.validateACLNeedsUpdate(latest)
2-
3-
if validationErr != nil {
1+
err = rm.validateACLNeedsUpdate(latest)
2+
if err != nil {
43
return nil, err
54
}
65

0 commit comments

Comments
 (0)