summaryrefslogtreecommitdiffstats
path: root/python/samba
diff options
context:
space:
mode:
authorAndrew Bartlett <abartlet@samba.org>2013-04-05 15:23:20 +1100
committerMichael Adam <obnox@samba.org>2013-04-10 00:13:45 +0200
commite7e37b3b90100f762a45f2f3c047e14e3619c216 (patch)
treef57dd6d74137a4c57145285328ddae95f1b4166c /python/samba
parent45a596fbe9ed2b198956d58784999df780f6dd65 (diff)
downloadsamba-e7e37b3b90100f762a45f2f3c047e14e3619c216.tar.gz
samba-e7e37b3b90100f762a45f2f3c047e14e3619c216.tar.xz
samba-e7e37b3b90100f762a45f2f3c047e14e3619c216.zip
python-samba-tool domain classicupgrade: Make failure to connect directly to the LDAP backend fatal
This is better than failing just a little further down the stack with a useless error about use-before-set. Andrew Bartlett Reviewed-by: Michael Adam <obnox@samba.org>
Diffstat (limited to 'python/samba')
-rw-r--r--python/samba/upgrade.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/python/samba/upgrade.py b/python/samba/upgrade.py
index 83712242fe..af854ef0e0 100644
--- a/python/samba/upgrade.py
+++ b/python/samba/upgrade.py
@@ -791,7 +791,7 @@ Please fix this account before attempting to upgrade again
try:
ldb_object = Ldb(url, credentials=creds)
except ldb.LdbError, e:
- logger.warning("Could not open ldb connection to %s, the error message is: %s", url, e)
+ raise ProvisiongError("Could not open ldb connection to %s, the error message is: %s" % (url, e))
else:
break
logger.info("Exporting posix attributes")