From 4e146a2098ce2525b637f87f35a0a9b2a3112e42 Mon Sep 17 00:00:00 2001 From: n-cc Date: Wed, 10 Jan 2024 15:56:01 -0600 Subject: [PATCH] fix CI --- plugins/module_utils/user.py | 4 ++-- plugins/modules/mysql_role.py | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/plugins/module_utils/user.py b/plugins/module_utils/user.py index b2de38df..a57e5142 100644 --- a/plugins/module_utils/user.py +++ b/plugins/module_utils/user.py @@ -155,10 +155,10 @@ def user_add(cursor, user, host, host_all, password, encrypted, attributes, tls_requires, reuse_existing_password, module): # we cannot create users without a proper hostname if host_all: - return {'changed': False, 'password_changed': False} + return {'changed': False, 'password_changed': False, 'attributes': {}} if module.check_mode: - return {'changed': True, 'password_changed': None} + return {'changed': True, 'password_changed': None, 'attributes': {}} # If attributes are set, perform a sanity check to ensure server supports user attributes before creating user if attributes and not get_attribute_support(cursor): diff --git a/plugins/modules/mysql_role.py b/plugins/modules/mysql_role.py index e8920933..57137913 100644 --- a/plugins/modules/mysql_role.py +++ b/plugins/modules/mysql_role.py @@ -931,7 +931,7 @@ def update(self, users, privs, check_mode=False, if privs: result = user_mod(self.cursor, self.name, self.host, None, None, None, None, None, None, - privs, append_privs, subtract_privs, None, + privs, append_privs, subtract_privs, None, None, self.module, role=True, maria_role=self.is_mariadb) changed = result['changed']