mirror of
https://github.com/freeipa/ansible-freeipa.git
synced 2026-07-30 19:34:45 +00:00
ipareplica py3test: Try to import promote_check if install_check is not defined
Since FreeIPA version 4.7.1 there is no install_check defined anymore in ipaserver.install.server.replicainstall.
This commit is contained in:
@@ -1,7 +1,10 @@
|
|||||||
#!/usr/bin/python3
|
#!/usr/bin/python3
|
||||||
|
|
||||||
# Test ipaerver python3 binding
|
# Test ipaerver python3 binding
|
||||||
from ipaserver.install.server.replicainstall import install_check
|
try:
|
||||||
|
from ipaserver.install.server.replicainstall import install_check
|
||||||
|
except ImportError:
|
||||||
|
from ipaserver.install.server.replicainstall import promote_check
|
||||||
|
|
||||||
# Check ipapython version to be >= 4.6
|
# Check ipapython version to be >= 4.6
|
||||||
from ipapython.version import NUM_VERSION, VERSION
|
from ipapython.version import NUM_VERSION, VERSION
|
||||||
|
|||||||
Reference in New Issue
Block a user