mirror of
https://github.com/ansible-collections/community.mysql.git
synced 2025-04-23 10:51:25 -07:00
7 lines
313 B
Python
7 lines
313 B
Python
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('10.5.1')
|