mirror of
https://github.com/ansible-collections/community.mysql.git
synced 2025-04-23 19:01:28 -07:00
Add dychotomy handling for mysql_replication
This commit is contained in:
parent
290795f560
commit
4b08069061
3 changed files with 21 additions and 19 deletions
|
@ -0,0 +1,7 @@
|
|||
from ansible_collections.community.mysql.plugins.module_utils.mysql import get_server_version
|
||||
from distutils.version import LooseVersion
|
||||
|
||||
|
||||
def uses_replica_terminology(cursor):
|
||||
"""Checks if REPLICA must be used instead of SLAVE"""
|
||||
return LooseVersion(get_server_version(cursor)) >= LooseVersion('8.0.22')
|
Loading…
Add table
Add a link
Reference in a new issue