summaryrefslogtreecommitdiff
path: root/source4/scripting/bin
diff options
context:
space:
mode:
authorMatthieu Patou <mat@matws.net>2011-06-13 23:23:05 +0400
committerMatthieu Patou <mat@samba.org>2011-06-19 23:21:08 +0200
commit930d2f28c99d5cf8823ca0837a632e13cead9fce (patch)
treea6f7d434316ccafe7649b1ce4314e456db13d395 /source4/scripting/bin
parent0e729149259055e9310c1dee78fce71a744006ab (diff)
downloadsamba-930d2f28c99d5cf8823ca0837a632e13cead9fce.tar.gz
samba-930d2f28c99d5cf8823ca0837a632e13cead9fce.tar.bz2
samba-930d2f28c99d5cf8823ca0837a632e13cead9fce.zip
s4-upgradeprovision: if there is nothing to really modify then skip it
Diffstat (limited to 'source4/scripting/bin')
-rwxr-xr-xsource4/scripting/bin/upgradeprovision3
1 files changed, 3 insertions, 0 deletions
diff --git a/source4/scripting/bin/upgradeprovision b/source4/scripting/bin/upgradeprovision
index 79cf97dce4..b214c4c8fd 100755
--- a/source4/scripting/bin/upgradeprovision
+++ b/source4/scripting/bin/upgradeprovision
@@ -1024,6 +1024,9 @@ def update_present(ref_samdb, samdb, basedn, listPresent, usns):
delta.remove("name")
+ if len(delta.items()) == 1:
+ continue
+
if len(delta.items()) > 1 and usns is not None:
# Fetch the replPropertyMetaData
res = samdb.search(expression="dn=%s" % (str(dn)), base=basedn,