mirror of
https://salsa.debian.org/freeipa-team/freeipa.git
synced 2025-02-25 18:55:28 -06:00
Fix zone find during forwardzone upgrade
https://fedorahosted.org/freeipa/ticket/4818 Reviewed-By: Petr Spacek <pspacek@redhat.com>
This commit is contained in:
committed by
Martin Kosek
parent
bb405bd972
commit
af6aece39b
@@ -198,12 +198,16 @@ class update_master_to_dnsforwardzones(PostUpdate):
|
||||
# fwzones exist, do not execute upgrade again
|
||||
return (False, False, [])
|
||||
|
||||
zones = []
|
||||
try:
|
||||
# raw values are required to store into ldif
|
||||
zones = api.Command.dnszone_find(all=True,
|
||||
raw=True,
|
||||
sizelimit=0)['result']
|
||||
except errors.NotFound:
|
||||
pass
|
||||
|
||||
if not zones:
|
||||
self.log.info('No DNS zone to update found')
|
||||
return (False, False, [])
|
||||
|
||||
|
||||
Reference in New Issue
Block a user