From 56369d8e3536c3e74198ca5469f74694be41178d Mon Sep 17 00:00:00 2001 From: Charles Thompson Date: Thu, 12 Dec 2024 05:01:35 -0500 Subject: [PATCH] Fix how a host identifies if it is MariaDB (#87) --- dolphie/Dolphie.py | 2 +- pyproject.toml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/dolphie/Dolphie.py b/dolphie/Dolphie.py index afc2ad2..da67f66 100644 --- a/dolphie/Dolphie.py +++ b/dolphie/Dolphie.py @@ -241,7 +241,7 @@ def determine_distro_and_connection_source_alt( aad_auth_only = global_variables.get("aad_auth_only") # Identify MariaDB and its variants - aria_in_global_variables = any("aria" in str(value).casefold() for value in global_variables.values()) + aria_in_global_variables = any(variable.startswith("aria_") for variable in global_variables.keys()) if aria_in_global_variables: if "rdsdb" in basedir: return "Amazon RDS (MariaDB)", ConnectionSource.mariadb diff --git a/pyproject.toml b/pyproject.toml index bd30be9..b9ef5bf 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [tool.poetry] name = "dolphie" -version = "6.7.1" +version = "6.7.2" license = "GPL-3.0-or-later" description = "Your single pane of glass for real-time analytics into MySQL/MariaDB & ProxySQL" authors = ["Charles Thompson <01charles.t@gmail.com>"]