mirror of
https://github.com/valitydev/salt.git
synced 2024-11-06 16:45:27 +00:00
Merge pull request #47245 from terminalmage/zeromq-bytes
Ensure we pass hexid as bytes when zmq_filtering enabled
This commit is contained in:
commit
42a0e655dc
@ -351,7 +351,10 @@ class AsyncZeroMQPubChannel(salt.transport.mixins.auth.AESPubClientMixin, salt.t
|
||||
if self.opts['zmq_filtering']:
|
||||
# TODO: constants file for "broadcast"
|
||||
self._socket.setsockopt(zmq.SUBSCRIBE, b'broadcast')
|
||||
self._socket.setsockopt(zmq.SUBSCRIBE, self.hexid)
|
||||
self._socket.setsockopt(
|
||||
zmq.SUBSCRIBE,
|
||||
salt.utils.stringutils.to_bytes(self.hexid)
|
||||
)
|
||||
else:
|
||||
self._socket.setsockopt(zmq.SUBSCRIBE, b'')
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user