mirror of
https://github.com/xcat2/confluent.git
synced 2024-11-22 17:43:14 +00:00
Do not answer deploy solicit without quorum
If we are not in quorum, we cannot provide credible answers to deployment.
This commit is contained in:
parent
231582dd0f
commit
86de9ce276
@ -168,6 +168,10 @@ def snoop(handler, byehandler=None, protocol=None, uuidlookup=None):
|
||||
if len(headline) < 3:
|
||||
continue
|
||||
if headline[0] == 'ST' and headline[-1].startswith(' urn:xcat.org:service:confluent:'):
|
||||
try:
|
||||
cfm.check_quorum()
|
||||
except Exception:
|
||||
continue
|
||||
for query in headline[-1].split('/'):
|
||||
if query.startswith('uuid='):
|
||||
curruuid = query.split('=', 1)[1].lower()
|
||||
|
Loading…
Reference in New Issue
Block a user