ipaserver: Do no use IPA version to check for get_custodia_instance existance

The use of IPA versions to determine if get_custodia_instance should be
used was not optimal as the patch that introduced this has been back-ported
to the EL-7 package with verion 4.5.4. As get_custodia_instance was not
available before we can simply check if get_custodia_instance exists in
custodiainstance.
This commit is contained in:
Thomas Woerner
2018-07-09 13:07:47 +02:00
parent 04325849ef
commit c8be120e78
2 changed files with 4 additions and 4 deletions

View File

@@ -83,7 +83,7 @@ def main():
# setup kra #####################################################
with redirect_stdout(ansible_log):
if NUM_VERSION >= 40504:
if hasattr(custodiainstance, "get_custodia_instance"):
custodia = custodiainstance.get_custodia_instance(
options, custodiainstance.CustodiaModes.MASTER_PEER)
custodia.create_instance()