summaryrefslogtreecommitdiffstats
path: root/ipaserver/install/ldapupdate.py
diff options
context:
space:
mode:
authorMartin Basti <mbasti@redhat.com>2015-05-12 13:00:10 +0200
committerJan Cholasta <jcholast@redhat.com>2015-05-19 12:43:04 +0000
commit6c438fff337794ac168a9b8aa7269b9afff7c95f (patch)
tree5b436ef36aa43fb07ff6c62dae5982b35c943f6a /ipaserver/install/ldapupdate.py
parent7660f40e2bedf6dce5c569f1be64a80934a952a3 (diff)
downloadfreeipa-6c438fff337794ac168a9b8aa7269b9afff7c95f.tar.gz
freeipa-6c438fff337794ac168a9b8aa7269b9afff7c95f.tar.xz
freeipa-6c438fff337794ac168a9b8aa7269b9afff7c95f.zip
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>
Diffstat (limited to 'ipaserver/install/ldapupdate.py')
-rw-r--r--ipaserver/install/ldapupdate.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/ipaserver/install/ldapupdate.py b/ipaserver/install/ldapupdate.py
index 2ea890efc..2f5bcc748 100644
--- a/ipaserver/install/ldapupdate.py
+++ b/ipaserver/install/ldapupdate.py
@@ -894,7 +894,7 @@ class LDAPUpdate:
data = self.read_file(f)
except Exception, e:
self.error("error reading update file '%s'", f)
- sys.exit(e)
+ raise RuntimeError(e)
self.parse_update_file(f, data, all_updates)
self._run_updates(all_updates)