1
0
mirror of https://github.com/samba-team/samba.git synced 2025-03-20 22:50:26 +03:00

samba_kcc: clarify readonly logging, removing now unused function

The unused function was somewhat misnamed.

Signed-off-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
This commit is contained in:
Douglas Bagnall 2017-12-13 17:35:29 +13:00 committed by Karolin Seeger
parent d3f4429cd6
commit 315f445a02
2 changed files with 3 additions and 6 deletions

View File

@ -1095,9 +1095,9 @@ class KCC(object):
if self.readonly:
# Display any to be deleted or modified repsTo
text = n_rep.dumpstr_reps_to()
if text:
logger.info("REMOVING REPS-TO:\n%s" % text)
for rt in n_rep.rep_repsTo:
if rt.to_be_deleted:
logger.info("REMOVING REPS-TO: %s" % rt)
# Peform deletion from our tables but perform
# no database modification

View File

@ -418,9 +418,6 @@ class NCReplica(NamingContext):
def dumpstr_to_be_modified(self):
return '\n'.join(str(x) for x in self.rep_repsFrom if x.is_modified())
def dumpstr_reps_to(self):
return '\n'.join(str(x) for x in self.rep_repsTo if x.to_be_deleted)
def load_fsmo_roles(self, samdb):
"""Given an NC replica which has been discovered thru the nTDSDSA
database object, load the fSMORoleOwner attribute.