diff --git a/plugins/module_utils/user.py b/plugins/module_utils/user.py index 24f7658..e68591a 100644 --- a/plugins/module_utils/user.py +++ b/plugins/module_utils/user.py @@ -368,7 +368,7 @@ def user_delete(cursor, user, host, host_all, check_mode): hostnames = [host] for hostname in hostnames: - cursor.execute("DROP USER IF EXIST %s@%s", (user, hostname)) + cursor.execute("DROP USER IF EXISTS %s@%s", (user, hostname)) return True