python/remove_dc: avoid using non-existent variable
authorDouglas Bagnall <douglas.bagnall@catalyst.net.nz>
Thu, 9 Mar 2017 01:53:46 +0000 (14:53 +1300)
committerAndrew Bartlett <abartlet@samba.org>
Fri, 10 Mar 2017 06:31:10 +0000 (07:31 +0100)
Signed-off-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz>
Signed-off-by: Andrew Bartlett <abartlet@samba.org>
python/samba/remove_dc.py

index eb4cbe06f0386248b4ca40efc65ef5d1a57e8ffb..61b5937ba7a9e46af83570bf62355782e3080839 100644 (file)
@@ -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: