]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
python:join: Remove unnecessary local variable
authorJennifer Sutton <jennifersutton@catalyst.net.nz>
Tue, 6 Aug 2024 04:18:16 +0000 (16:18 +1200)
committerJo Sutton <jsutton@samba.org>
Mon, 26 May 2025 02:41:36 +0000 (02:41 +0000)
BUG: https://bugzilla.samba.org/show_bug.cgi?id=15852

Signed-off-by: Jennifer Sutton <jennifersutton@catalyst.net.nz>
Reviewed-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz>
python/samba/join.py

index 3ea188682dc64b313def61e11b67dc64d1518888..7b1fe84d448d6a0c85245de89b826a26c0ccba39 100644 (file)
@@ -1749,8 +1749,7 @@ class DCCloneAndRenameContext(DCCloneContext):
 
     def rename_dn(ctx, dn_str):
         """Uses string substitution to replace the base DN"""
-        old_base_dn = ctx.base_dn
-        return re.sub('%s$' % old_base_dn, ctx.new_base_dn, dn_str)
+        return re.sub('%s$' % ctx.base_dn, ctx.new_base_dn, dn_str)
 
     # we want to override the normal DCCloneContext's join_provision() so that
     # use the new domain DNs during the provision. We do this because: