2
0
mirror of https://github.com/xcat2/confluent.git synced 2024-11-25 02:52:07 +00:00

Fix None return by exec_on_leader with warnings

This commit is contained in:
Jarrod Johnson 2024-04-12 17:32:13 -04:00
parent a6a2f2f2de
commit 3ba3394a54

View File

@ -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: