Skip to content

Commit 66cb643

Browse files
authored
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.
1 parent b618feb commit 66cb643

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

utils/clickhouse-diagnostics/clickhouse-diagnostics

+1-1
Original file line numberDiff line numberDiff line change
@@ -953,7 +953,7 @@ def parse_version(version):
953953
"""
954954
Parse version string.
955955
"""
956-
return [int(x) for x in version.strip().split('.')]
956+
return [int(x) for x in version.strip().split('.') if x.isnumeric()]
957957

958958

959959
if __name__ == '__main__':

0 commit comments

Comments
 (0)