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:
Ramazan Polat 2022-01-28 18:57:56 +03:00 committed by GitHub
parent b618febdec
commit 66cb64393b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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__':