mirror of
https://github.com/xcat2/confluent.git
synced 2024-11-28 20:39:40 +00:00
Fix None return by exec_on_leader with warnings
This commit is contained in:
parent
a6a2f2f2de
commit
3ba3394a54
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user