mirror of
https://github.com/ansible-collections/community.mysql.git
synced 2025-04-09 04:00:32 -07:00
Fix wrong variable used to return a hashed password
This commit is contained in:
parent
d7997f83b0
commit
e33c49d2e6
1 changed files with 2 additions and 2 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_auth_string': rows[0][1]}
|
||||
return {'plugin': rows[0][0], 'plugin_hash_string': rows[0][1]}
|
||||
|
||||
if isinstance(rows[0], dict):
|
||||
return {'plugin': rows[0].get('plugin'), 'plugin_auth_string': rows[0].get('auth')}
|
||||
return {'plugin': rows[0].get('plugin'), 'plugin_hash_string': rows[0].get('auth')}
|
||||
return None
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue