Skip to content

Commit 4e146a2

Browse files
n-ccn-cc
authored andcommitted
fix CI
1 parent 5273712 commit 4e146a2

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

plugins/module_utils/user.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -155,10 +155,10 @@ def user_add(cursor, user, host, host_all, password, encrypted,
155155
attributes, tls_requires, reuse_existing_password, module):
156156
# we cannot create users without a proper hostname
157157
if host_all:
158-
return {'changed': False, 'password_changed': False}
158+
return {'changed': False, 'password_changed': False, 'attributes': {}}
159159

160160
if module.check_mode:
161-
return {'changed': True, 'password_changed': None}
161+
return {'changed': True, 'password_changed': None, 'attributes': {}}
162162

163163
# If attributes are set, perform a sanity check to ensure server supports user attributes before creating user
164164
if attributes and not get_attribute_support(cursor):

plugins/modules/mysql_role.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -931,7 +931,7 @@ def update(self, users, privs, check_mode=False,
931931
if privs:
932932
result = user_mod(self.cursor, self.name, self.host,
933933
None, None, None, None, None, None,
934-
privs, append_privs, subtract_privs, None,
934+
privs, append_privs, subtract_privs, None, None,
935935
self.module, role=True, maria_role=self.is_mariadb)
936936
changed = result['changed']
937937

0 commit comments

Comments
 (0)