Fix ipc_mode check in windows

Although 'tcp' is the only supported ipc_mode in windows, this
check was completely wrong and would never allow overriding it.
This commit is contained in:
Colton Myers 2015-12-17 13:25:47 -07:00
parent fe0778dad5
commit 5a21893e82

View file

@ -184,7 +184,7 @@ class SaltEvent(object):
self.opts = opts
if sock_dir is None:
sock_dir = opts.get('sock_dir', None)
if salt.utils.is_windows() and not hasattr(opts, 'ipc_mode'):
if salt.utils.is_windows() and 'ipc_mode' not in opts:
opts['ipc_mode'] = 'tcp'
self.puburi, self.pulluri = self.__load_uri(sock_dir, node)
self.pending_tags = []