mirror of
https://github.com/ansible-collections/community.mysql.git
synced 2025-04-25 11:51:27 -07:00
cut newlines added by accident
This commit is contained in:
parent
29b6ad89a1
commit
08b7842001
2 changed files with 0 additions and 2 deletions
|
@ -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(", ")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue