mirror of
https://github.com/ansible-collections/community.mysql.git
synced 2025-08-27 08:21:46 -07:00
formatting (PEP8)
This commit is contained in:
parent
eb4ffd54c3
commit
35e5676bf8
2 changed files with 9 additions and 9 deletions
|
@ -912,9 +912,9 @@ class Role():
|
||||||
|
|
||||||
if privs:
|
if privs:
|
||||||
result = user_mod(self.cursor, self.name, self.host,
|
result = user_mod(self.cursor, self.name, self.host,
|
||||||
None, None, None, None, None, None,
|
None, None, None, None, None, None,
|
||||||
privs, append_privs, subtract_privs, None,
|
privs, append_privs, subtract_privs, None,
|
||||||
self.module, role=True, maria_role=self.is_mariadb)
|
self.module, role=True, maria_role=self.is_mariadb)
|
||||||
changed = result['changed']
|
changed = result['changed']
|
||||||
|
|
||||||
if admin:
|
if admin:
|
||||||
|
|
|
@ -457,13 +457,13 @@ def main():
|
||||||
try:
|
try:
|
||||||
if update_password == "always":
|
if update_password == "always":
|
||||||
result = user_mod(cursor, user, host, host_all, password, encrypted,
|
result = user_mod(cursor, user, host, host_all, password, encrypted,
|
||||||
plugin, plugin_hash_string, plugin_auth_string,
|
plugin, plugin_hash_string, plugin_auth_string,
|
||||||
priv, append_privs, subtract_privs, tls_requires, module)
|
priv, append_privs, subtract_privs, tls_requires, module)
|
||||||
|
|
||||||
else:
|
else:
|
||||||
result = user_mod(cursor, user, host, host_all, None, encrypted,
|
result = user_mod(cursor, user, host, host_all, None, encrypted,
|
||||||
None, None, None,
|
None, None, None,
|
||||||
priv, append_privs, subtract_privs, tls_requires, module)
|
priv, append_privs, subtract_privs, tls_requires, module)
|
||||||
changed = result['changed']
|
changed = result['changed']
|
||||||
msg = result['msg']
|
msg = result['msg']
|
||||||
password_changed = result['password_changed']
|
password_changed = result['password_changed']
|
||||||
|
@ -478,8 +478,8 @@ def main():
|
||||||
priv = None # avoid granting unwanted privileges
|
priv = None # avoid granting unwanted privileges
|
||||||
reuse_existing_password = update_password == 'on_new_username'
|
reuse_existing_password = update_password == 'on_new_username'
|
||||||
result = user_add(cursor, user, host, host_all, password, encrypted,
|
result = user_add(cursor, user, host, host_all, password, encrypted,
|
||||||
plugin, plugin_hash_string, plugin_auth_string,
|
plugin, plugin_hash_string, plugin_auth_string,
|
||||||
priv, tls_requires, module.check_mode, reuse_existing_password)
|
priv, tls_requires, module.check_mode, reuse_existing_password)
|
||||||
changed = result['changed']
|
changed = result['changed']
|
||||||
password_changed = result['password_changed']
|
password_changed = result['password_changed']
|
||||||
if changed:
|
if changed:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue