Revert non relevant changes to have cleaner patch

This commit is contained in:
Laurent Indermuehle 2023-10-10 17:48:23 +02:00
parent dbfc252ca5
commit 970897cc46
No known key found for this signature in database
GPG key ID: 93FA944C9F34DD09
2 changed files with 3 additions and 2 deletions

View file

@ -533,8 +533,8 @@ def privileges_get(module, cursor, user, host, maria_role=False):
raise InvalidPrivsError('unable to parse the MySQL grant string: %s' % grant[0])
privileges = [x.strip() for x in res.group(1).split(",")]
privileges = [pick(x) for x in privileges]
privileges = res.group(1).split(",")
privileges = [pick(x.strip()) for x in privileges]
# Handle cases when there's privs like GRANT SELECT (colA, ...) in privs.
# To this point, the privileges list can look like