Skip to content

Commit

Permalink
Don't parce mariadb version for debug entry directly
Browse files Browse the repository at this point in the history
  • Loading branch information
Mikhail Sandakov committed Dec 20, 2024
1 parent 9079587 commit 9d318bf
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions pleskdistup/common/src/mariadb.py
Original file line number Diff line number Diff line change
Expand Up @@ -88,8 +88,9 @@ def get_installed_mariadb_version() -> MariaDBVersion:
if not utility:
raise RuntimeError("Unable to find mariadb or mysql utility")
out = subprocess.check_output([utility, "--version"], universal_newlines=True)
log.debug("Detected mariadb version is: {version}".format(version=out.split("Distrib ")[1].split(",")[0].split("-")[0]))
return MariaDBVersion(out)
result = MariaDBVersion(out)
log.debug(f"Detected mariadb version is: {result}")
return result


def get_mariadb_config_file_path() -> str:
Expand Down

0 comments on commit 9d318bf

Please sign in to comment.