mirror of
https://github.com/freeipa/ansible-freeipa.git
synced 2026-07-31 11:54:47 +00:00
ipareplica_setup_krb: Use inspect on install_krb
The promote argument has been dropped with the final removal of domain level 0 support in version 4.7.1. The fstore argument has been added with the 4.7.1 version also.
This commit is contained in:
@@ -145,11 +145,25 @@ def main():
|
|||||||
ansible_log.debug("-- INSTALL_KRB --")
|
ansible_log.debug("-- INSTALL_KRB --")
|
||||||
|
|
||||||
with redirect_stdout(ansible_log):
|
with redirect_stdout(ansible_log):
|
||||||
krb = install_krb(
|
argspec = inspect.getargspec(install_krb)
|
||||||
config,
|
if "promote" in argspec.args:
|
||||||
setup_pkinit=not options.no_pkinit,
|
krb = install_krb(
|
||||||
pkcs12_info=pkinit_pkcs12_info,
|
config,
|
||||||
promote=promote)
|
setup_pkinit=not options.no_pkinit,
|
||||||
|
pkcs12_info=pkinit_pkcs12_info,
|
||||||
|
promote=promote)
|
||||||
|
else:
|
||||||
|
if "fstore" not in argspec.args:
|
||||||
|
krb = install_krb(
|
||||||
|
config,
|
||||||
|
setup_pkinit=not options.no_pkinit,
|
||||||
|
pkcs12_info=pkinit_pkcs12_info)
|
||||||
|
else:
|
||||||
|
krb = install_krb(
|
||||||
|
config,
|
||||||
|
setup_pkinit=not options.no_pkinit,
|
||||||
|
pkcs12_info=pkinit_pkcs12_info,
|
||||||
|
fstore=fstore)
|
||||||
|
|
||||||
# done #
|
# done #
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user