[skip ci] Update codes of update file (#11497)

Signed-off-by: wangting0128 <ting.wang@zilliz.com>
This commit is contained in:
wt 2021-11-09 19:16:26 +08:00 committed by GitHub
parent 3a8acb03ee
commit 3fc9983998
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -44,13 +44,14 @@ def get_tags(url, token):
def get_master_tags(tags_list):
_list = []
tag_name = "master"
if not isinstance(tags_list, list):
print("tags_list is not a list.")
return _list
for tag in tags_list:
if "master" in tag and tag != "master-latest":
if tag_name in tag and tag != tag_name + "-latest":
_list.append(tag)
return _list