Skip to content

Commit

Permalink
Honor the set_default_role_all parameter (ansible-collections#282)
Browse files Browse the repository at this point in the history
The set_default_role_all parameter is documented, but does nothing. This PR fixes this.
  • Loading branch information
bgarret authored Feb 4, 2022
1 parent cbdf512 commit f547b66
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion plugins/modules/mysql_role.py
Original file line number Diff line number Diff line change
Expand Up @@ -769,7 +769,8 @@ def update_members(self, users, check_mode=False, append_members=False,

self.cursor.execute(*self.q_builder.role_grant(user))

self.role_impl.set_default_role_all(user)
if set_default_role_all:
self.role_impl.set_default_role_all(user)

changed = True

Expand Down

0 comments on commit f547b66

Please sign in to comment.