diff options
-rwxr-xr-x | source4/scripting/python/samba/upgradehelpers.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source4/scripting/python/samba/upgradehelpers.py b/source4/scripting/python/samba/upgradehelpers.py index 377ac290b7..74a157d041 100755 --- a/source4/scripting/python/samba/upgradehelpers.py +++ b/source4/scripting/python/samba/upgradehelpers.py @@ -422,7 +422,7 @@ def identic_rename(ldbobj, dn): :param lbdobj: An Ldb Object :param dn: DN of the object to manipulate """ - (before, sep, after)=str(dn).partition('=') + (before, after) = str(dn).split('=', 1) ldbobj.rename(dn, ldb.Dn(ldbobj, "%s=foo%s" % (before, after))) ldbobj.rename(ldb.Dn(ldbobj, "%s=foo%s" % (before, after)), dn) |