Skip to content
This repository has been archived by the owner on Jun 24, 2021. It is now read-only.

Commit

Permalink
update version check (#1050) (#1056)
Browse files Browse the repository at this point in the history
  • Loading branch information
liubo0127 authored Dec 8, 2019
1 parent 7e01a02 commit 50edc4f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions rolling_update.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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]
Expand Down

0 comments on commit 50edc4f

Please sign in to comment.