From: Jennifer Sutton Date: Tue, 6 Aug 2024 04:18:16 +0000 (+1200) Subject: python:join: Remove unnecessary local variable X-Git-Tag: tevent-0.17.0~139 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=b9e9b5371b3daeef6eb53932fc8d334483b9d4a9;p=thirdparty%2Fsamba.git python:join: Remove unnecessary local variable BUG: https://bugzilla.samba.org/show_bug.cgi?id=15852 Signed-off-by: Jennifer Sutton Reviewed-by: Douglas Bagnall --- diff --git a/python/samba/join.py b/python/samba/join.py index 3ea188682dc..7b1fe84d448 100644 --- a/python/samba/join.py +++ b/python/samba/join.py @@ -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: