From 0a51d9413786d99854ee0c0807dca35512bae312 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Laurent=20Inderm=C3=BChle?= Date: Fri, 27 Jan 2023 08:53:44 +0100 Subject: [PATCH] Refactor to handle Unknow in the if block Co-authored-by: Andrew Klychkov --- plugins/module_utils/mysql.py | 3 --- 1 file changed, 3 deletions(-) diff --git a/plugins/module_utils/mysql.py b/plugins/module_utils/mysql.py index a467d65..8da39cf 100644 --- a/plugins/module_utils/mysql.py +++ b/plugins/module_utils/mysql.py @@ -64,9 +64,6 @@ def get_driver_version(mysql_driver): driver_name = get_driver_name(mysql_driver) - if driver_name == 'Unknown': - return 'Unknown' - if driver_name == 'pymysql': # pymysql has two methods: # - __version__ that returns the string: 0.7.11.None