mirror of
https://salsa.debian.org/freeipa-team/freeipa.git
synced 2025-02-25 18:55:28 -06:00
Server Upgrade: raise RuntimeError instead exit()
Ldapupdater should not call sys.exit() in the middle of execution and should fail gracefully https://fedorahosted.org/freeipa/ticket/4904 Reviewed-By: David Kupka <dkupka@redhat.com>
This commit is contained in:
committed by
Jan Cholasta
parent
7660f40e2b
commit
6c438fff33
@@ -894,7 +894,7 @@ class LDAPUpdate:
|
|||||||
data = self.read_file(f)
|
data = self.read_file(f)
|
||||||
except Exception, e:
|
except Exception, e:
|
||||||
self.error("error reading update file '%s'", f)
|
self.error("error reading update file '%s'", f)
|
||||||
sys.exit(e)
|
raise RuntimeError(e)
|
||||||
|
|
||||||
self.parse_update_file(f, data, all_updates)
|
self.parse_update_file(f, data, all_updates)
|
||||||
self._run_updates(all_updates)
|
self._run_updates(all_updates)
|
||||||
|
|||||||
Reference in New Issue
Block a user