From 930d2f28c99d5cf8823ca0837a632e13cead9fce Mon Sep 17 00:00:00 2001 From: Matthieu Patou Date: Mon, 13 Jun 2011 23:23:05 +0400 Subject: s4-upgradeprovision: if there is nothing to really modify then skip it --- source4/scripting/bin/upgradeprovision | 3 +++ 1 file changed, 3 insertions(+) (limited to 'source4/scripting/bin/upgradeprovision') 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, -- cgit