From 3ba3394a542422433cbb0b726103f4742e4ba363 Mon Sep 17 00:00:00 2001 From: Jarrod Johnson Date: Fri, 12 Apr 2024 17:32:13 -0400 Subject: [PATCH] Fix None return by exec_on_leader with warnings --- confluent_server/confluent/config/configmanager.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/confluent_server/confluent/config/configmanager.py b/confluent_server/confluent/config/configmanager.py index 6c7ebd71..528924e8 100644 --- a/confluent_server/confluent/config/configmanager.py +++ b/confluent_server/confluent/config/configmanager.py @@ -2209,7 +2209,7 @@ class ConfigManager(object): if cfgleader: mywarnings = exec_on_leader('_rpc_master_clear_node_attributes', self.tenant, nodes, attributes) - if warnings is not None: + if mywarnings and warnings is not None: warnings.extend(mywarnings) return if cfgstreams: