s4-join: enable cleanup on failed join
authorAndrew Tridgell <tridge@samba.org>
Tue, 27 Sep 2011 23:32:15 +0000 (09:32 +1000)
committerAndrew Tridgell <tridge@samba.org>
Tue, 4 Oct 2011 04:08:57 +0000 (15:08 +1100)
if a join fails, then cleanup the old records

source4/scripting/python/samba/join.py

index 195dfc23120f2c81314a4d3f49add3c960d9f44f..38f5c8aac18ceebaebb25da8f8ac5c25367a457a 100644 (file)
@@ -818,7 +818,7 @@ class dc_join(object):
             ctx.join_finalise()
         except Exception:
             print "Join failed - cleaning up"
-            #ctx.cleanup_old_join()
+            ctx.cleanup_old_join()
             raise