From 04c678fd0858a21241b81746184e110791799137 Mon Sep 17 00:00:00 2001 From: Douglas Bagnall Date: Wed, 1 Apr 2015 15:29:14 +1300 Subject: [PATCH] KCC: slight rewrite for the sake of pep8 Signed-off-by: Douglas Bagnall Reviewed-by: Garming Sam Reviewed-by: Andrew Bartlett --- python/samba/kcc_utils.py | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/python/samba/kcc_utils.py b/python/samba/kcc_utils.py index 7d5f4294275..b91bbeec8cc 100644 --- a/python/samba/kcc_utils.py +++ b/python/samba/kcc_utils.py @@ -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 \ - (self.nc_type == NCType.domain and - self.nc_dnstr == target_dsa.default_dnstr): - needed = True + 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)) # A writable replica of an application NC should be present # if there a cross reference to the target DSA exists. Depending