diff options
Diffstat (limited to 'source4/scripting')
-rwxr-xr-x | source4/scripting/bin/samba_upgradeprovision | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/source4/scripting/bin/samba_upgradeprovision b/source4/scripting/bin/samba_upgradeprovision index 0eacf1d6d6..6b5df1e201 100755 --- a/source4/scripting/bin/samba_upgradeprovision +++ b/source4/scripting/bin/samba_upgradeprovision @@ -1226,9 +1226,6 @@ def fix_wellknown_sd(samdb, names): :param samdb: An LDB object pointing to the sam of the current provision :param names: A list of key provision parameters """ - alwaysRecalculate = False - if len(dnToRecalculate) == 0 and len(dnNotToRecalculate) == 0: - alwaysRecalculate = True list_wellknown_dns = [] @@ -1287,7 +1284,7 @@ def fix_wellknown_sd(samdb, names): for [dn, descriptor_fn] in subcontainers: list_wellknown_dns.append(dn) - if alwaysRecalculate or dn in dnToRecalculate: + if dn in dnToRecalculate: delta = Message() delta.dn = Dn(samdb, str(dn)) descr = descriptor_fn(names.domainsid, name_map=names.name_map) |