From: Douglas Bagnall Date: Thu, 9 Mar 2017 01:53:46 +0000 (+1300) Subject: python/remove_dc: avoid using non-existent variable X-Git-Tag: tdb-1.3.13~587 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=b9c56142b52c6b3912132d250d7a8d2a3aed0c3b;p=thirdparty%2Fsamba.git python/remove_dc: avoid using non-existent variable Signed-off-by: Douglas Bagnall Signed-off-by: Andrew Bartlett --- diff --git a/python/samba/remove_dc.py b/python/samba/remove_dc.py index eb4cbe06f03..61b5937ba7a 100644 --- a/python/samba/remove_dc.py +++ b/python/samba/remove_dc.py @@ -70,8 +70,8 @@ def remove_sysvol_references(samdb, logger, dc_name): raise DemoteException("Failed constructing DN %s by adding base" % \ (dn, samdb.get_default_basedn())) if dn.add_child("CN=X") == False: - raise DemoteException("Failed constructing DN %s by adding child %s"\ - % (dn, rdn)) + raise DemoteException("Failed constructing DN %s by adding child " + "CN=X (soon to be CN=%s)" % (dn, dc_name)) dn.set_component(0, "CN", dc_name) try: