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(", ")