mirror of
https://salsa.debian.org/freeipa-team/freeipa.git
synced 2025-02-25 18:55:28 -06:00
upgrade: don't fail if zone does not exists in in find
In case that zone is not managed by IPA, upgrade fails with not found error. Prevent failure in this case. Reviewed-By: Petr Spacek <pspacek@redhat.com>
This commit is contained in:
@@ -1037,7 +1037,11 @@ class BindInstance(service.Service):
|
||||
|
||||
def remove_ipa_ca_cnames(self, domain_name):
|
||||
# get ipa-ca CNAMEs
|
||||
cnames = get_rr(domain_name, IPA_CA_RECORD, "CNAME", api=self.api)
|
||||
try:
|
||||
cnames = get_rr(domain_name, IPA_CA_RECORD, "CNAME", api=self.api)
|
||||
except errors.NotFound:
|
||||
# zone does not exists
|
||||
cnames = None
|
||||
if not cnames:
|
||||
return
|
||||
|
||||
|
||||
Reference in New Issue
Block a user