From 3ede35f6b2e38531ffdc679aff6ec8baec6bc12a Mon Sep 17 00:00:00 2001 From: cite Date: Wed, 10 Aug 2022 18:02:52 +0200 Subject: [PATCH] [FIX] `fifoTopic`-property doesn't get properly stored in k8s Signed-off-by: cite --- pkg/clients/sns/topic.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/clients/sns/topic.go b/pkg/clients/sns/topic.go index ac2731b054..82f29285dc 100644 --- a/pkg/clients/sns/topic.go +++ b/pkg/clients/sns/topic.go @@ -105,7 +105,7 @@ func LateInitializeTopicAttr(in *v1beta1.TopicParameters, attrs map[string]strin in.FifoTopic = nil fifoTopic, err := strconv.ParseBool(attrs[string(TopicFifoTopic)]) - if err != nil && fifoTopic { + if err == nil && fifoTopic { in.FifoTopic = awsclients.LateInitializeBoolPtr(in.FifoTopic, aws.Bool(fifoTopic)) } }