From 28e9f5ce69dc902f202906a6348b701b7db2050d Mon Sep 17 00:00:00 2001 From: Harshil Gajera Date: Fri, 9 Aug 2024 14:57:47 +0530 Subject: [PATCH] ci: debugging --- splunk_matrix_update.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/splunk_matrix_update.py b/splunk_matrix_update.py index 67f57ce..0028fc2 100644 --- a/splunk_matrix_update.py +++ b/splunk_matrix_update.py @@ -57,12 +57,14 @@ def filter_image_list(images_list): def get_build_number_1(token, latest_image_digest): _, image_lists = get_images_list(token) + # images_list = [d["name"] for d in image_lists] + # images_list = filter_image_list(images_list) match_and_return_name = next( ( d["name"] for d in image_lists for image in d.get("images", []) - if image["digest"] == latest_image_digest + if image["digest"] == latest_image_digest and re.match(r"'[0-9a-z]{12}'", d["name"]) ), None, )