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:
Rob Crittenden authored and Florence Blanc-Renaud committed 2021-02-04 01:29:53 +01:00
1 parent 62521edcd1
commit daf2ca3ead
1 file changed
+2 -2
+2 -2
View File
@@ -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