Skip to content

Commit abb1bf9

Browse files
committed
Fix image filter
1 parent 864f8ee commit abb1bf9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

turbinia/workers/containerd.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -215,7 +215,7 @@ def run(self, evidence, result):
215215
continue
216216
if filter_images:
217217
image_short = image.split('@')[0]
218-
image_short = image.split(':')[0]
218+
image_short = image_short.split(':')[0]
219219
if image_short in filter_images:
220220
message = (
221221
f'Filtering out image {image} because image matches filter')
@@ -255,7 +255,7 @@ def run(self, evidence, result):
255255
if filtered_container_list:
256256
report_data.append(
257257
f'Filtered out {len(filtered_container_list)} containers: '
258-
f'{{", ".join(filtered_container_list)}}')
258+
f'{", ".join(filtered_container_list)}')
259259
report_data.append(
260260
f'Container filter lists: Namespaces: {filter_namespaces}, Images: {filter_images}, '
261261
f'Containers: {filter_containers}')

0 commit comments

Comments
 (0)