1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-22 13:34:15 +03:00

KCC: slight rewrite for the sake of pep8

Signed-off-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz>
Reviewed-by: Garming Sam <garming@catalyst.net.nz>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
This commit is contained in:
Douglas Bagnall 2015-04-01 15:29:14 +13:00 committed by Andrew Bartlett
parent 6200432d85
commit 04c678fd08

View File

@ -1311,18 +1311,16 @@ class Partition(NamingContext):
:param target_dsa: should NC be present on target dsa :param target_dsa: should NC be present on target dsa
""" """
needed = False
ro = False ro = False
partial = False partial = False
# If this is the config, schema, or default # If this is the config, schema, or default
# domain NC for the target dsa then it should # domain NC for the target dsa then it should
# be present # be present
if self.nc_type == NCType.config or \ needed = (self.nc_type == NCType.config or
self.nc_type == NCType.schema or \ self.nc_type == NCType.schema or
(self.nc_type == NCType.domain and (self.nc_type == NCType.domain and
self.nc_dnstr == target_dsa.default_dnstr): self.nc_dnstr == target_dsa.default_dnstr))
needed = True
# A writable replica of an application NC should be present # A writable replica of an application NC should be present
# if there a cross reference to the target DSA exists. Depending # if there a cross reference to the target DSA exists. Depending