From 804142774667889b58a44d830f1f8ec9fd83f37f Mon Sep 17 00:00:00 2001 From: liubo Date: Sun, 8 Dec 2019 17:32:14 +0800 Subject: [PATCH] update version check (#1050) --- rolling_update.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/rolling_update.yml b/rolling_update.yml index 1f0e93a8c..19247209c 100644 --- a/rolling_update.yml +++ b/rolling_update.yml @@ -51,8 +51,8 @@ fail: msg: "Rolling update from {{ current_version.stdout_lines[0].replace(' ','').split(':')[1] }} to {{ tidb_version }} is forbidden" when: - - current_version.stdout_lines[0].replace(' ','').split(':')[1] < "v2.0.1" - - tidb_version >= "v2.1.0" or tidb_version == "latest" + - current_version.stdout_lines[0].replace(' ','').split(':')[1].strip('v') < "2.0.1" + - tidb_version == "latest" or tidb_version >= "v2.1.0" - name: Pre-check PD configuration hosts: pd_servers[0]