mirror of
https://salsa.debian.org/freeipa-team/freeipa.git
synced 2025-02-25 18:55:28 -06:00
Use the new API introduced in PKI 10.8
https://www.dogtagpki.org/wiki/PKI_10.8_Python_Changes Reviewed-By: Florence Blanc-Renaud <flo@redhat.com>
This commit is contained in:
parent
62521edcd1
commit
daf2ca3ead
@ -84,7 +84,7 @@ def get_security_domain():
|
|||||||
cert_paths=paths.IPA_CA_CRT
|
cert_paths=paths.IPA_CA_CRT
|
||||||
)
|
)
|
||||||
domain_client = pki.system.SecurityDomainClient(connection)
|
domain_client = pki.system.SecurityDomainClient(connection)
|
||||||
info = domain_client.get_security_domain_info()
|
info = domain_client.get_domain_info()
|
||||||
return info
|
return info
|
||||||
|
|
||||||
|
|
||||||
@ -97,7 +97,7 @@ def is_installing_replica(sys_type):
|
|||||||
"""
|
"""
|
||||||
info = get_security_domain()
|
info = get_security_domain()
|
||||||
try:
|
try:
|
||||||
sys_list = info.systems[sys_type]
|
sys_list = info.subsystems[sys_type]
|
||||||
return len(sys_list.hosts) > 0
|
return len(sys_list.hosts) > 0
|
||||||
except KeyError:
|
except KeyError:
|
||||||
return False
|
return False
|
||||||
|
Loading…
Reference in New Issue
Block a user