Skip to content

Commit

Permalink
fix delete on resourcepolicy
Browse files Browse the repository at this point in the history
  • Loading branch information
stefnans committed Aug 9, 2024
1 parent 3088e2e commit 5324d2a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/controller/cloudwatchlogs/resourcepolicy/setup.go
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ func preUpdate(_ context.Context, cr *svcapitypes.ResourcePolicy, obj *svcsdk.Pu

func preDelete(_ context.Context, cr *svcapitypes.ResourcePolicy, obj *svcsdk.DeleteResourcePolicyInput) (bool, error) {
obj.PolicyName = pointer.ToOrNilIfZeroValue(meta.GetExternalName(cr))
return true, nil
return false, nil
}

func postObserve(_ context.Context, cr *svcapitypes.ResourcePolicy, _ *svcsdk.DescribeResourcePoliciesOutput, obs managed.ExternalObservation, err error) (managed.ExternalObservation, error) {
Expand Down

0 comments on commit 5324d2a

Please sign in to comment.