From 10a376ff1d360dd2849207838128316ecfab719b Mon Sep 17 00:00:00 2001 From: "John \"Preston\" Mille" Date: Thu, 8 Jun 2023 12:58:19 +0100 Subject: [PATCH] Fix topic update not returning properties --- cfn_kafka_admin/lambda_functions/topics.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/cfn_kafka_admin/lambda_functions/topics.py b/cfn_kafka_admin/lambda_functions/topics.py index a88fbeb..badaa87 100644 --- a/cfn_kafka_admin/lambda_functions/topics.py +++ b/cfn_kafka_admin/lambda_functions/topics.py @@ -176,6 +176,13 @@ def update(self): self.cluster_info, settings=self.get("Settings"), ) + self.physical_resource_id = self.get("Name") + self.set_attribute("Name", self.get("Name")) + self.set_attribute("Partitions", self.get("PartitionsCount")) + self.set_attribute("BootstrapServers", self.get("BootstrapServers")) + self.success( + reason="Topic {} successfully updated.".format(self.get("Name")) + ) except Exception as error: self.fail(str(error))