mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-21 15:12:02 +00:00
Make clickhouse-diagnostics also work for altinity release
Because altinity release has `altinitystable` at the end of version number, `parse_version` function throws parse error.
This commit is contained in:
parent
b618febdec
commit
66cb64393b
@ -953,7 +953,7 @@ def parse_version(version):
|
||||
"""
|
||||
Parse version string.
|
||||
"""
|
||||
return [int(x) for x in version.strip().split('.')]
|
||||
return [int(x) for x in version.strip().split('.') if x.isnumeric()]
|
||||
|
||||
|
||||
if __name__ == '__main__':
|
||||
|
Loading…
Reference in New Issue
Block a user