mirror of https://github.com/milvus-io/milvus.git
test: [skip e2e] fix getting wrong image tag by short name (#29347)
By adding conjunctions, you can obtain more accurate results. Signed-off-by: zhuwenxing <wenxing.zhu@zilliz.com>pull/29356/head
parent
1b4d2674b3
commit
1b5ac82c6b
|
@ -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()
|
||||
|
|
Loading…
Reference in New Issue