From 2852e7927e190f3289a223dcc0247b87e785584a Mon Sep 17 00:00:00 2001 From: Laurent Indermuehle Date: Fri, 12 Apr 2024 15:18:29 +0200 Subject: [PATCH] fix returned variable from plugin_auth_string to plugin_hash_string --- plugins/module_utils/user.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plugins/module_utils/user.py b/plugins/module_utils/user.py index f042c85..e43934e 100644 --- a/plugins/module_utils/user.py +++ b/plugins/module_utils/user.py @@ -143,10 +143,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