2
0
mirror of https://github.com/xcat2/confluent.git synced 2024-11-28 20:39:40 +00:00

Restore libc access to sockapi

Cleanup went too for in python2 port.
This commit is contained in:
Jarrod Johnson 2021-02-26 16:25:51 -05:00
parent 814257fbf8
commit f34e184d31

View File

@ -21,6 +21,8 @@
#
import atexit
import ctypes
import ctypes.util
import errno
import os
import pwd
@ -75,6 +77,8 @@ except ImportError:
plainsocket = None
libc = ctypes.CDLL(ctypes.util.find_library('c'))
def _should_authlog(path, operation):
if (operation == 'retrieve' and
('/sensors/' in path or '/health/' in path or