diff options
author | Matthieu Patou <mat@matws.net> | 2011-06-13 23:23:05 +0400 |
---|---|---|
committer | Matthieu Patou <mat@samba.org> | 2011-06-19 23:21:08 +0200 |
commit | 930d2f28c99d5cf8823ca0837a632e13cead9fce (patch) | |
tree | a6f7d434316ccafe7649b1ce4314e456db13d395 | |
parent | 0e729149259055e9310c1dee78fce71a744006ab (diff) | |
download | samba-930d2f28c99d5cf8823ca0837a632e13cead9fce.tar.gz samba-930d2f28c99d5cf8823ca0837a632e13cead9fce.tar.bz2 samba-930d2f28c99d5cf8823ca0837a632e13cead9fce.zip |
s4-upgradeprovision: if there is nothing to really modify then skip it
-rwxr-xr-x | source4/scripting/bin/upgradeprovision | 3 |
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, |