mirror of
https://github.com/freeipa/ansible-freeipa.git
synced 2026-04-20 07:41:07 +00:00
The additional client test is needed to make sure that the client is installed for python3 usage. The ipalib test has not been sufficient.
10 lines
281 B
Python
10 lines
281 B
Python
#!/usr/bin/python3
|
|
|
|
# Test ipaclient python3 binding
|
|
from ipaclient.install.client import SECURE_PATH
|
|
|
|
# Check ipapython version to be >= 4.6
|
|
from ipapython.version import NUM_VERSION, VERSION
|
|
if NUM_VERSION < 40600:
|
|
raise Exception("ipa %s not usable with python3" % VERSION)
|