mirror of
https://salsa.debian.org/freeipa-team/freeipa.git
synced 2025-02-25 18:55:28 -06:00
dogtag: remove redundant property definition
The dogtag `ra' backend defines a `ca_host' property, which is also defined (identically) by the `RestClient' class, which recently became a superclass of `ra'. Remove the redundant property definition. Part of: https://pagure.io/freeipa/issue/3473 Reviewed-By: Christian Heimes <cheimes@redhat.com>
This commit is contained in:
committed by
Martin Basti
parent
d5e7a57e5b
commit
49f87f34be
@@ -1384,26 +1384,6 @@ class ra(rabase.rabase, RestClient):
|
||||
self.error('%s.%s(): %s', type(self).__name__, func_name, err_msg)
|
||||
raise errors.CertificateOperationError(error=err_msg)
|
||||
|
||||
@cachedproperty
|
||||
def ca_host(self):
|
||||
"""
|
||||
:return: host
|
||||
as str
|
||||
|
||||
Select our CA host.
|
||||
"""
|
||||
ldap2 = self.api.Backend.ldap2
|
||||
if host_has_service(api.env.ca_host, ldap2, "CA"):
|
||||
return api.env.ca_host
|
||||
if api.env.host != api.env.ca_host:
|
||||
if host_has_service(api.env.host, ldap2, "CA"):
|
||||
return api.env.host
|
||||
host = select_any_master(ldap2)
|
||||
if host:
|
||||
return host
|
||||
else:
|
||||
return api.env.ca_host
|
||||
|
||||
def _request(self, url, port, **kw):
|
||||
"""
|
||||
:param url: The URL to post to.
|
||||
|
||||
Reference in New Issue
Block a user