From 35e5676bf85ca02cd1de6e3a65d59fbc509f0d40 Mon Sep 17 00:00:00 2001 From: Felix Hamme Date: Thu, 19 May 2022 13:09:09 +0200 Subject: [PATCH] formatting (PEP8) --- plugins/modules/mysql_role.py | 6 +++--- plugins/modules/mysql_user.py | 12 ++++++------ 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/plugins/modules/mysql_role.py b/plugins/modules/mysql_role.py index ad3514e..b37d70d 100644 --- a/plugins/modules/mysql_role.py +++ b/plugins/modules/mysql_role.py @@ -912,9 +912,9 @@ class Role(): if privs: result = user_mod(self.cursor, self.name, self.host, - None, None, None, None, None, None, - privs, append_privs, subtract_privs, None, - self.module, role=True, maria_role=self.is_mariadb) + None, None, None, None, None, None, + privs, append_privs, subtract_privs, None, + self.module, role=True, maria_role=self.is_mariadb) changed = result['changed'] if admin: diff --git a/plugins/modules/mysql_user.py b/plugins/modules/mysql_user.py index fe3bfef..850908f 100644 --- a/plugins/modules/mysql_user.py +++ b/plugins/modules/mysql_user.py @@ -457,13 +457,13 @@ def main(): try: if update_password == "always": result = user_mod(cursor, user, host, host_all, password, encrypted, - plugin, plugin_hash_string, plugin_auth_string, - priv, append_privs, subtract_privs, tls_requires, module) + plugin, plugin_hash_string, plugin_auth_string, + priv, append_privs, subtract_privs, tls_requires, module) else: result = user_mod(cursor, user, host, host_all, None, encrypted, - None, None, None, - priv, append_privs, subtract_privs, tls_requires, module) + None, None, None, + priv, append_privs, subtract_privs, tls_requires, module) changed = result['changed'] msg = result['msg'] password_changed = result['password_changed'] @@ -478,8 +478,8 @@ def main(): priv = None # avoid granting unwanted privileges reuse_existing_password = update_password == 'on_new_username' result = user_add(cursor, user, host, host_all, password, encrypted, - plugin, plugin_hash_string, plugin_auth_string, - priv, tls_requires, module.check_mode, reuse_existing_password) + plugin, plugin_hash_string, plugin_auth_string, + priv, tls_requires, module.check_mode, reuse_existing_password) changed = result['changed'] password_changed = result['password_changed'] if changed: