[skip e2e] Delete unused codes of update file (#14390)

Signed-off-by: wangting0128 <ting.wang@zilliz.com>
pull/14412/head
wt 2021-12-28 13:29:32 +08:00 committed by GitHub
parent 9c1c7bc54b
commit 255ec011a3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 15 deletions

View File

@ -10,20 +10,6 @@ import requests
import json
def get_image_tag():
url = ""
headers = {"accept": "application/json"}
try:
rep = requests.get(url, headers=headers)
data = json.loads(rep.text)
tag_name = data[0]["tags"][0]["name"]
print("[benchmark update] The image name used is %s" % str(tag_name))
return tag_name
except:
print("Can not get the tag list")
return "master-latest"
def parse_server_tag(server_tag):
""" paser server tag from server config"""
# tag format: "8c"/"8c16m"/"8c16m1g"
@ -259,4 +245,4 @@ if __name__ == "__main__":
except Exception as e:
logging.error(str(e))
logging.error(traceback.format_exc())
sys.exit(-1)
sys.exit(-1)