mirror of
https://github.com/ansible-collections/community.mysql.git
synced 2025-08-22 05:51:45 -07:00
Revert changes that will be in a separate PR
This commit is contained in:
parent
671e9a4689
commit
e98dd124b6
3 changed files with 3 additions and 4 deletions
|
@ -119,10 +119,10 @@ def get_existing_authentication(cursor, user, host):
|
|||
rows = list(rows.values())
|
||||
|
||||
if isinstance(rows[0], tuple):
|
||||
return {'plugin': rows[0][0], 'plugin_hash_string': rows[0][1]}
|
||||
return {'plugin': rows[0][0], 'plugin_auth_string': rows[0][1]}
|
||||
|
||||
if isinstance(rows[0], dict):
|
||||
return {'plugin': rows[0].get('plugin'), 'plugin_hash_string': rows[0].get('auth')}
|
||||
return {'plugin': rows[0].get('plugin'), 'plugin_auth_string': rows[0].get('auth')}
|
||||
return None
|
||||
|
||||
|
||||
|
|
|
@ -230,7 +230,7 @@ users_info:
|
|||
- Does not support proxy privileges. If an account has proxy privileges, they won't appear in the output.
|
||||
- Causes issues with authentications plugins C(sha256_password) and C(caching_sha2_password).
|
||||
If the output is fed to M(community.mysql.mysql_user), the
|
||||
``plugin_hash_string`` will most likely be unreadable due to non-binary
|
||||
``plugin_auth_string`` will most likely be unreadable due to non-binary
|
||||
characters.
|
||||
returned: if not excluded by filter
|
||||
type: dict
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue