mirror of
https://github.com/ansible-collections/community.mysql.git
synced 2025-04-08 19:50:31 -07:00
fix sanity
This commit is contained in:
parent
a60df289b2
commit
1497ed646d
1 changed files with 2 additions and 4 deletions
|
@ -123,16 +123,14 @@ def get_existing_authentication(cursor, user, host):
|
||||||
if isinstance(rows[0], tuple):
|
if isinstance(rows[0], tuple):
|
||||||
return {'plugin': rows[0][0],
|
return {'plugin': rows[0][0],
|
||||||
'plugin_auth_string': rows[0][1],
|
'plugin_auth_string': rows[0][1],
|
||||||
'plugin_hash_string': rows[0][1]
|
'plugin_hash_string': rows[0][1]}
|
||||||
}
|
|
||||||
|
|
||||||
# 'plugin_auth_string' contains the hash string. Must be removed in c.mysql 4.0
|
# 'plugin_auth_string' contains the hash string. Must be removed in c.mysql 4.0
|
||||||
# See https://github.com/ansible-collections/community.mysql/pull/629
|
# See https://github.com/ansible-collections/community.mysql/pull/629
|
||||||
if isinstance(rows[0], dict):
|
if isinstance(rows[0], dict):
|
||||||
return {'plugin': rows[0].get('plugin'),
|
return {'plugin': rows[0].get('plugin'),
|
||||||
'plugin_auth_string': rows[0].get('auth'),
|
'plugin_auth_string': rows[0].get('auth'),
|
||||||
'plugin_hash_string': rows[0].get('auth')
|
'plugin_hash_string': rows[0].get('auth')}
|
||||||
}
|
|
||||||
return None
|
return None
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue