From daf2ca3ead0f529dd3bcfd2aba97a410638dba7d Mon Sep 17 00:00:00 2001 From: Rob Crittenden Date: Fri, 22 Jan 2021 17:25:28 -0500 Subject: [PATCH] Use the new API introduced in PKI 10.8 https://www.dogtagpki.org/wiki/PKI_10.8_Python_Changes Reviewed-By: Florence Blanc-Renaud --- ipaserver/install/dogtaginstance.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ipaserver/install/dogtaginstance.py b/ipaserver/install/dogtaginstance.py index 52dfc016a..7f2a4a32e 100644 --- a/ipaserver/install/dogtaginstance.py +++ b/ipaserver/install/dogtaginstance.py @@ -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