mirror of
https://github.com/valitydev/salt.git
synced 2024-11-07 08:58:59 +00:00
safer lookup of master_type
This commit is contained in:
parent
6dcad5f65c
commit
bd35eb77b9
@ -148,7 +148,8 @@ class ZeroMQChannel(Channel):
|
||||
key = self.sreq_key
|
||||
|
||||
if key not in ZeroMQChannel.sreq_cache:
|
||||
if self.opts['master_type'] == 'failover':
|
||||
master_type = self.opts.get('master_type', None)
|
||||
if master_type == 'failover':
|
||||
# remove all cached sreqs to the old master to prevent
|
||||
# zeromq from reconnecting to old masters automagically
|
||||
for check_key in self.sreq_cache.keys():
|
||||
|
Loading…
Reference in New Issue
Block a user