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]