Files
ansible-freeipa/roles/ipaserver/files/py3test.py
Sergio Oliveira Campos 4155f2f3ac Made code flake8 friendly
2020-04-25 19:07:54 -03:00

10 lines
305 B
Python

#!/usr/bin/python3
# Test ipaerver python3 binding
from ipaserver.install.server.install import install_check # noqa: F401
# Check ipapython version to be >= 4.6
from ipapython.version import NUM_VERSION, VERSION
if NUM_VERSION < 40590:
raise Exception("ipa %s not usable with python3" % VERSION)