mirror of
https://salsa.debian.org/freeipa-team/freeipa.git
synced 2024-12-23 07:33:27 -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
|
||||
)
|
||||
domain_client = pki.system.SecurityDomainClient(connection)
|
||||
info = domain_client.get_security_domain_info()
|
||||
info = domain_client.get_domain_info()
|
||||
return info
|
||||
|
||||
|
||||
@ -97,7 +97,7 @@ def is_installing_replica(sys_type):
|
||||
"""
|
||||
info = get_security_domain()
|
||||
try:
|
||||
sys_list = info.systems[sys_type]
|
||||
sys_list = info.subsystems[sys_type]
|
||||
return len(sys_list.hosts) > 0
|
||||
except KeyError:
|
||||
return False
|
||||
|
Loading…
Reference in New Issue
Block a user