mirror of
https://github.com/samba-team/samba.git
synced 2025-12-17 04:23:50 +03:00
samba-tool drs showrepl: correctly report failing repsFrom
Hopefully this fixes the flapping test. Signed-off-by: Andrew Bartlett <abartlet@samba.org> Reviewed-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz> Autobuild-User(master): Douglas Bagnall <dbagnall@samba.org> Autobuild-Date(master): Wed Jul 4 04:43:39 CEST 2018 on sn-devel-144
This commit is contained in:
committed by
Douglas Bagnall
parent
c5fa4b1531
commit
ec69abec7c
@@ -229,7 +229,7 @@ class cmd_drs_showrepl(Command):
|
||||
if rep['is deleted']:
|
||||
continue
|
||||
if rep["consecutive failures"] != 0 or rep["last success"] == 0:
|
||||
failing_repsto.append(rep)
|
||||
failing_repsfrom.append(rep)
|
||||
|
||||
if failing_repsto or failing_repsfrom:
|
||||
self.message(colour.c_RED("There are failing connections"))
|
||||
|
||||
Reference in New Issue
Block a user