From 66cb64393beaf418b55bd59c65e1ecf76f783f19 Mon Sep 17 00:00:00 2001 From: Ramazan Polat Date: Fri, 28 Jan 2022 18:57:56 +0300 Subject: [PATCH] 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. --- utils/clickhouse-diagnostics/clickhouse-diagnostics | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/utils/clickhouse-diagnostics/clickhouse-diagnostics b/utils/clickhouse-diagnostics/clickhouse-diagnostics index ffddee0bdc4..83c0af9cd11 100644 --- a/utils/clickhouse-diagnostics/clickhouse-diagnostics +++ b/utils/clickhouse-diagnostics/clickhouse-diagnostics @@ -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__':