From 8d0c2237265cd3aa34fcdee5b3b3910809992f9c Mon Sep 17 00:00:00 2001 From: zhuwenxing Date: Fri, 16 Jun 2023 18:40:40 +0800 Subject: [PATCH] [skip e2e]increase compatibility with different inputs (#24962) Signed-off-by: zhuwenxing --- tests/scripts/get_helm_chart_version_by_app_version.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tests/scripts/get_helm_chart_version_by_app_version.py b/tests/scripts/get_helm_chart_version_by_app_version.py index fe2f170ef7..36c27efda0 100644 --- a/tests/scripts/get_helm_chart_version_by_app_version.py +++ b/tests/scripts/get_helm_chart_version_by_app_version.py @@ -4,6 +4,8 @@ def get_chart_version(repo = "milvus/milvus", app_version="2.2.0"): """ Get helm chart version by app version """ + if app_version.startswith("v"): + app_version = app_version[1:] cmd = f"helm search repo {repo} -l -o json" result = subprocess.check_output(cmd, shell=True) result = json.loads(result)