mirror of
https://github.com/valitydev/salt.git
synced 2024-11-08 17:33:54 +00:00
Merge pull request #7485 from s0undt3ch/hotfix/zmq-version-info
Keep ZMQ version checking simple.
This commit is contained in:
commit
f7628be386
@ -167,10 +167,8 @@ class Master(SMaster):
|
||||
'''
|
||||
Create a salt master server instance
|
||||
'''
|
||||
# Warn if ZMQ < 3
|
||||
if (int(zmq.zmq_version()[0]) < 3 or
|
||||
(int(zmq.zmq_version()[0]) == 3 and
|
||||
int(zmq.zmq_version()[2]) < 2)):
|
||||
# Warn if ZMQ < 3.2
|
||||
if zmq.zmq_version_info() < (3, 2):
|
||||
log.warning('You have a version of ZMQ less than ZMQ 3.2! There '
|
||||
'are known connection keep-alive issues with ZMQ < '
|
||||
'3.2 which may result in loss of contact with '
|
||||
|
@ -458,9 +458,7 @@ class Minion(object):
|
||||
Pass in the options dict
|
||||
'''
|
||||
# Warn if ZMQ < 3.2
|
||||
if HAS_ZMQ and (int(zmq.zmq_version()[0]) < 3 or
|
||||
(int(zmq.zmq_version()[0]) == 3 and
|
||||
int(zmq.zmq_version()[2]) < 2)):
|
||||
if HAS_ZMQ and zmq.zmq_version_info() < (3, 2):
|
||||
log.warning('You have a version of ZMQ less than ZMQ 3.2! There '
|
||||
'are known connection keep-alive issues with ZMQ < '
|
||||
'3.2 which may result in loss of contact with '
|
||||
|
Loading…
Reference in New Issue
Block a user