Skip to content

Commit

Permalink
fix getting clickhouse version from 22.x packages
Browse files Browse the repository at this point in the history
  • Loading branch information
strtgbb committed Jan 22, 2025
1 parent 217a4fd commit 17d3be6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion helpers/cluster.py
Original file line number Diff line number Diff line change
Expand Up @@ -1403,7 +1403,7 @@ def __init__(self, source, program_name="clickhouse", binary_only=False):

if not self.package_version:
self.package_version = bash(
f"{self.binary_path} --version | grep -Po '(?<=version )[0-9.a-z]*'"
f"{self.binary_path} server --version | grep -Po '(?<=version )[0-9.a-z]*'"
).output.strip(".")

if binary_only:
Expand Down

0 comments on commit 17d3be6

Please sign in to comment.