From f547b66d353eeefe35650e392a68cab4eba79e20 Mon Sep 17 00:00:00 2001 From: Benoit Garret Date: Fri, 4 Feb 2022 10:43:24 +0100 Subject: [PATCH] Honor the set_default_role_all parameter (#282) The set_default_role_all parameter is documented, but does nothing. This PR fixes this. --- plugins/modules/mysql_role.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/plugins/modules/mysql_role.py b/plugins/modules/mysql_role.py index 80d0144..8525ac6 100644 --- a/plugins/modules/mysql_role.py +++ b/plugins/modules/mysql_role.py @@ -769,7 +769,8 @@ class Role(): 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