mirror of
https://github.com/ansible-collections/community.mysql.git
synced 2025-04-23 10:51:25 -07:00
Move version check for resource_limits to implementations
This commit is contained in:
parent
424b33d1f8
commit
97604477c6
3 changed files with 13 additions and 28 deletions
|
@ -17,3 +17,9 @@ def use_old_user_mgmt(cursor):
|
|||
|
||||
def supports_identified_by_password(cursor):
|
||||
return True
|
||||
|
||||
|
||||
def server_supports_alter_user(cursor):
|
||||
version = get_server_version(cursor)
|
||||
|
||||
return LooseVersion(version) >= LooseVersion("10.2")
|
||||
|
|
|
@ -18,3 +18,9 @@ def use_old_user_mgmt(cursor):
|
|||
def supports_identified_by_password(cursor):
|
||||
version = get_server_version(cursor)
|
||||
return LooseVersion(version) < LooseVersion("8")
|
||||
|
||||
|
||||
def server_supports_alter_user(cursor):
|
||||
version = get_server_version(cursor)
|
||||
|
||||
return LooseVersion(version) >= LooseVersion("5.6")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue