From 08b7842001102582e92bb23899dbc2a93edb6c1e Mon Sep 17 00:00:00 2001 From: Laurent Indermuehle Date: Fri, 15 Sep 2023 15:34:44 +0200 Subject: [PATCH] cut newlines added by accident --- Makefile | 1 - plugins/module_utils/user.py | 1 - 2 files changed, 2 deletions(-) diff --git a/Makefile b/Makefile index 42e56e3..7ea0785 100644 --- a/Makefile +++ b/Makefile @@ -100,7 +100,6 @@ test-integration: set +x # End of venv - rm tests/integration/db_engine_name rm tests/integration/db_engine_version rm tests/integration/connector_name diff --git a/plugins/module_utils/user.py b/plugins/module_utils/user.py index eabbeff..bdaff43 100644 --- a/plugins/module_utils/user.py +++ b/plugins/module_utils/user.py @@ -108,7 +108,6 @@ def get_tls_requires(cursor, user, host): def get_grants(cursor, user, host): cursor.execute("SHOW GRANTS FOR %s@%s", (user, host)) grants_line = list(filter(lambda x: "ON *.*" in x[0], cursor.fetchall()))[0] - pattern = r"(?<=\bGRANT\b)(.*?)(?=(?:\bON\b))" grants = re.search(pattern, grants_line[0]).group().strip() return grants.split(", ")