Browse Source

Ticket 48957 - Update repl-monitor to handle new status messages

Bug Description:  The replication agreement status messages have changed,
                  and the repl-monitor script was not updated to reflect
                  these changes.  This lead to the html report incorrectly
                  color coding a successfull status.

Fix Description:  Update the script to ignore "Error (0)"

https://fedorahosted.org/389/ticket/48957

Reviewed by: mreynolds (one line commit rule)
Mark Reynolds 9 years ago
parent
commit
32ee33b222
1 changed files with 1 additions and 1 deletions
  1. 1 1
      ldap/admin/src/scripts/repl-monitor.pl.in

+ 1 - 1
ldap/admin/src/scripts/repl-monitor.pl.in

@@ -877,7 +877,7 @@ sub print_consumers
 			}   
 			my $redfontstart = "";
 			my $redfontend = "";
-			if ($status =~ /error/i) {
+			if ($status !~ /Error \(0\)/i) {
 			  $redfontstart = "<font color='red'>";
 			  $redfontend = "</font>";
 			}