mirror of
https://github.com/samba-team/samba.git
synced 2025-12-16 00:23:52 +03:00
python:join: Remove unnecessary local variable
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>
This commit is contained in:
committed by
Jo Sutton
parent
25c4ee2337
commit
b9e9b5371b
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user