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:
1 parent
55b7eed77e
commit
deb70d5b13
1 file changed
+2
@@ -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')
|
||||
|
||||
Reference in new issue
Block a user