From ba92d772b5299331e5e8c054575b1a68680ee463 Mon Sep 17 00:00:00 2001 From: wt Date: Tue, 19 Oct 2021 17:00:55 +0800 Subject: [PATCH] [skip ci] Update codes of main file on benchmark (#10175) Signed-off-by: wangting0128 --- tests/benchmark/milvus_benchmark/main.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tests/benchmark/milvus_benchmark/main.py b/tests/benchmark/milvus_benchmark/main.py index c310c40588..d86df50822 100644 --- a/tests/benchmark/milvus_benchmark/main.py +++ b/tests/benchmark/milvus_benchmark/main.py @@ -20,6 +20,7 @@ from logs import log log.setup_logging() logger = logging.getLogger("milvus_benchmark.main") + def positive_int(s): i = None try: @@ -33,7 +34,7 @@ def positive_int(s): def get_image_tag(image_version): """ Set the image version to the latest version """ - return "%s-latest" % (image_version) + return "%s-latest" % str(image_version) # def shutdown(event):