From 5045de1a64f9ba07c80a5a358d91787bdf989ead Mon Sep 17 00:00:00 2001 From: Malar Invention Date: Sun, 12 Jan 2025 20:08:37 +0530 Subject: [PATCH] fix: bug --- node_external_ip_controller_async.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/node_external_ip_controller_async.py b/node_external_ip_controller_async.py index 66c4148..0894793 100644 --- a/node_external_ip_controller_async.py +++ b/node_external_ip_controller_async.py @@ -39,7 +39,8 @@ async def update_service_annotation(v1, service, external_ipset): logger.debug(f"Zlan Gateway IP: {zlan_gateway_ip}") if is_valid_ip(zlan_gateway_ip): - external_ipset = set(external_ipset).add(zlan_gateway_ip) + external_ipset = set(external_ipset) + external_ipset.add(zlan_gateway_ip) else: logger.debug( f"Invalid Zlan Gateway IP: {zlan_gateway_ip}, excluding from target annotation"