Skip to content
Snippets Groups Projects
Commit 1df12a61 authored by Thomas Woerner's avatar Thomas Woerner
Browse files

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.
parent 059eae47
No related branches found
No related tags found
No related merge requests found
#!/usr/bin/python3 #!/usr/bin/python3
# Test ipaerver python3 binding # Test ipaerver python3 binding
try:
from ipaserver.install.server.replicainstall import install_check 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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment