mirror of
https://github.com/ansible-collections/community.mysql.git
synced 2025-04-24 19:31:30 -07:00
Refactor to handle Unknow in the if block
Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru>
This commit is contained in:
parent
bc917b739c
commit
0a51d94137
1 changed files with 0 additions and 3 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue