Skip to content

Commit bffd0e2

Browse files
committed
sq-poller: fix blacklisted services not actually disabled
Signed-off-by: Claudio Lorina <[email protected]>
1 parent 391e868 commit bffd0e2

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

suzieq/poller/worker/services/service_manager.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -146,8 +146,9 @@ def get_service_list(service_only: str,
146146
)
147147

148148
svcs = list(Path(service_directory).glob('*.yml'))
149-
allsvcs = [os.path.basename(x).split('.')[0] for x in svcs
150-
if x not in BLACKLIST_SERVICES]
149+
allsvcs = [s_name for s in svcs
150+
if (s_name := os.path.basename(s).split('.')[0])
151+
not in BLACKLIST_SERVICES]
151152
svclist = None
152153

153154
if service_only:

0 commit comments

Comments
 (0)