Skip to content

Commit

Permalink
Revert non relevant changes to have cleaner patch
Browse files Browse the repository at this point in the history
  • Loading branch information
laurent-indermuehle committed Oct 10, 2023
1 parent ab4fcbb commit e9a77a0
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
4 changes: 2 additions & 2 deletions plugins/module_utils/user.py
Original file line number Diff line number Diff line change
Expand Up @@ -533,8 +533,8 @@ def pick(x):

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
Expand Down
1 change: 1 addition & 0 deletions tests/sanity/ignore-2.15.txt
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,5 @@ plugins/modules/mysql_info.py validate-modules:parameter-list-no-elements
plugins/modules/mysql_query.py validate-modules:parameter-list-no-elements
plugins/modules/mysql_user.py validate-modules:undocumented-parameter
plugins/modules/mysql_variables.py validate-modules:doc-required-mismatch
plugins/module_utils/mysql.py pylint:unused-import
plugins/module_utils/version.py pylint:unused-import

0 comments on commit e9a77a0

Please sign in to comment.