mirror of
https://salsa.debian.org/freeipa-team/freeipa.git
synced 2024-12-23 15:40:01 -06:00
dogtag-ipa-ca-renew-agent-submit: fix the is_replicated() function
dogtag-ipa-ca-renew-agent-submit behaves differently depending on the certificate it needs to renew. For instance, some certificates (such as IPA RA) are the same on all the hosts and the renewal is actually done only on the renewal master. On other nodes, the new cert is downloaded from LDAP. The function is_replicated() is returning the opposite as what it should. If the cert nickname is IPA RA, it should return that the cert is replicated but it doesn't, and this leads to a wrong code path to renew the cert. https://pagure.io/freeipa/issue/6813 Reviewed-By: Jan Cholasta <jcholast@redhat.com>
This commit is contained in:
parent
3dcd342631
commit
e934da09d5
@ -119,7 +119,7 @@ def is_renewable():
|
||||
|
||||
|
||||
def is_replicated():
|
||||
return not get_nickname()
|
||||
return bool(get_nickname())
|
||||
|
||||
|
||||
def is_renewal_master():
|
||||
|
Loading…
Reference in New Issue
Block a user