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:
parent
d3f4429cd6
commit
315f445a02
@ -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
|
||||
|
@ -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.
|
||||
|
Loading…
x
Reference in New Issue
Block a user