From 40ad5d714a1a0ea00a44f181f59f41b66db46ac7 Mon Sep 17 00:00:00 2001 From: zhuwenxing Date: Wed, 20 Dec 2023 17:12:41 +0800 Subject: [PATCH] test: [skip e2e] [cherry-pick]fix getting hotfix image tag (#29350) By adding conjunctions, you can obtain more accurate results. pr: https://github.com/milvus-io/milvus/pull/29347 Signed-off-by: zhuwenxing --- tests/scripts/get_image_tag_by_short_name.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/scripts/get_image_tag_by_short_name.py b/tests/scripts/get_image_tag_by_short_name.py index c3da4e52ef..9dbec0121c 100644 --- a/tests/scripts/get_image_tag_by_short_name.py +++ b/tests/scripts/get_image_tag_by_short_name.py @@ -12,7 +12,7 @@ def get_image_tag_by_short_name(repository, tag, arch): # latest means the tag is a release build # latest -> v$version splits = tag.split("-") - prefix = splits[0] if len(splits) > 1 else "v" + prefix = f"{splits[0]}-" if len(splits) > 1 else "v" url = f"https://hub.docker.com/v2/repositories/{repository}/tags?name={prefix}&ordering=last_updated" response = requests.get(url) data = response.json()