mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
Fix wart in tcp transport
This commit is contained in:
parent
8890635449
commit
e79e3899e4
1 changed files with 4 additions and 4 deletions
|
@ -1614,12 +1614,12 @@ class _TCPPubServerPublisher:
|
|||
"""
|
||||
Connect to a running IPCServer
|
||||
"""
|
||||
if isinstance(self.path, int):
|
||||
sock_type = socket.AF_INET
|
||||
sock_addr = (self.host, self.port)
|
||||
else:
|
||||
if self.path:
|
||||
sock_type = socket.AF_UNIX
|
||||
sock_addr = self.path
|
||||
else:
|
||||
sock_type = socket.AF_INET
|
||||
sock_addr = (self.host, self.port)
|
||||
|
||||
self.stream = None
|
||||
if timeout is not None:
|
||||
|
|
Loading…
Add table
Reference in a new issue