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:
parent
6200432d85
commit
04c678fd08
@ -1311,18 +1311,16 @@ class Partition(NamingContext):
|
||||
|
||||
:param target_dsa: should NC be present on target dsa
|
||||
"""
|
||||
needed = False
|
||||
ro = False
|
||||
partial = False
|
||||
|
||||
# If this is the config, schema, or default
|
||||
# domain NC for the target dsa then it should
|
||||
# be present
|
||||
if self.nc_type == NCType.config or \
|
||||
self.nc_type == NCType.schema or \
|
||||
needed = (self.nc_type == NCType.config or
|
||||
self.nc_type == NCType.schema or
|
||||
(self.nc_type == NCType.domain and
|
||||
self.nc_dnstr == target_dsa.default_dnstr):
|
||||
needed = True
|
||||
self.nc_dnstr == target_dsa.default_dnstr))
|
||||
|
||||
# A writable replica of an application NC should be present
|
||||
# if there a cross reference to the target DSA exists. Depending
|
||||
|
Loading…
Reference in New Issue
Block a user