From 1497ed646df78ecc1cb50b29d6672db8db0130a2 Mon Sep 17 00:00:00 2001 From: Laurent Indermuehle Date: Thu, 25 Apr 2024 13:51:57 +0200 Subject: [PATCH] fix sanity --- plugins/module_utils/user.py | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/plugins/module_utils/user.py b/plugins/module_utils/user.py index 1be3b80..25b1734 100644 --- a/plugins/module_utils/user.py +++ b/plugins/module_utils/user.py @@ -123,16 +123,14 @@ def get_existing_authentication(cursor, user, host): if isinstance(rows[0], tuple): return {'plugin': rows[0][0], '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 # See https://github.com/ansible-collections/community.mysql/pull/629 if isinstance(rows[0], dict): return {'plugin': rows[0].get('plugin'), 'plugin_auth_string': rows[0].get('auth'), - 'plugin_hash_string': rows[0].get('auth') - } + 'plugin_hash_string': rows[0].get('auth')} return None