1
0
Fork 0

Use get_list to parse unix_socket_signal_path

This commit is contained in:
Pavol Žáčik 2024-03-25 16:13:21 +01:00
parent 55daf4aee7
commit a916594a49
No known key found for this signature in database
GPG key ID: B99527D5E6487A92
2 changed files with 2 additions and 2 deletions

View file

@ -83,7 +83,7 @@ class Application(object):
raise TunedException("Unix socket interface is already initialized.")
self._unix_socket_exporter = exports.unix_socket.UnixSocketExporter(self.config.get(consts.CFG_UNIX_SOCKET_PATH),
self.config.get(consts.CFG_UNIX_SOCKET_SIGNAL_PATHS),
self.config.get_list(consts.CFG_UNIX_SOCKET_SIGNAL_PATHS),
self.config.get(consts.CFG_UNIX_SOCKET_OWNERSHIP),
self.config.get_int(consts.CFG_UNIX_SOCKET_PERMISIONS),
self.config.get_int(consts.CFG_UNIX_SOCKET_CONNECTIONS_BACKLOG))

View file

@ -30,7 +30,7 @@ class UnixSocketExporter(interfaces.ExporterInterface):
self._socket_path = socket_path
self._socket_object = None
self._socket_signal_paths = re.split(r",;", signal_paths) if signal_paths else []
self._socket_signal_paths = signal_paths
self._socket_signal_objects = []
self._ownership = [-1, -1]
if ownership: