From a124e77505e22bfaf542d2a94cdc54dde3412f23 Mon Sep 17 00:00:00 2001
From: "E.S. Rosenberg a.k.a. Keeper of the Keys"
 <es.rosenberg+github@gmail.com>
Date: Tue, 11 Mar 2025 15:20:57 +0200
Subject: [PATCH] Cleaner type conditionals

Signed-off-by: E.S. Rosenberg a.k.a. Keeper of the Keys <es.rosenberg+github@gmail.com>
---
 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 2214087..e865723 100644
--- a/plugins/module_utils/user.py
+++ b/plugins/module_utils/user.py
@@ -60,10 +60,10 @@ def user_is_locked(cursor, user, host):
 
     # ACCOUNT LOCK does not have to be the last option in the CREATE USER query.
     # Need to handle both DictCursor and non-DictCursor
-    if type(result) == type([]):
+    if type(result) is list:
         if result[0] and result[0].find('ACCOUNT LOCK') > 0:
             return True
-    elif type(result) == type({}):
+    elif type(result) is dict:
         for res in result.values():
             if res.find('ACCOUNT LOCK') > 0:
                 return True