mirror of
https://salsa.debian.org/freeipa-team/freeipa.git
synced 2024-12-24 16:10:02 -06:00
Do not crash when replica is unreachable in ipa-restore
https://fedorahosted.org/freeipa/ticket/4857 Reviewed-By: Martin Kosek <mkosek@redhat.com>
This commit is contained in:
parent
55b7eed77e
commit
deb70d5b13
@ -457,6 +457,7 @@ class Restore(admintool.AdminTool):
|
||||
self.dirman_password)
|
||||
except Exception, e:
|
||||
self.log.critical("Unable to disable agreement on %s: %s" % (master, e))
|
||||
continue
|
||||
|
||||
master_dn = DN(('cn', master), ('cn', 'masters'), ('cn', 'ipa'), ('cn', 'etc'), api.env.basedn)
|
||||
try:
|
||||
@ -481,6 +482,7 @@ class Restore(admintool.AdminTool):
|
||||
self.dirman_password)
|
||||
except Exception, e:
|
||||
self.log.critical("Unable to disable agreement on %s: %s" % (master, e))
|
||||
continue
|
||||
|
||||
host_entries = repl.find_ipa_replication_agreements()
|
||||
hosts = [rep.single_value.get('nsds5replicahost')
|
||||
|
Loading…
Reference in New Issue
Block a user