amoralej / rpms / 389-ds-base

Forked from rpms/389-ds-base 5 years ago
Clone

Blame SOURCES/0048-Ticket-48957-Update-repl-monitor-to-handle-new-statu.patch

7c7f29
From 1eebfaff67aa6af7821fcc861fcdf3ef7fc9d25a Mon Sep 17 00:00:00 2001
7c7f29
From: Mark Reynolds <mreynolds@redhat.com>
7c7f29
Date: Thu, 1 Sep 2016 12:54:08 -0400
7c7f29
Subject: [PATCH 48/49] Ticket 48957 - Update repl-monitor to handle new status
7c7f29
 messages
7c7f29
7c7f29
Bug Description:  The replication agreement status messages have changed,
7c7f29
                  and the repl-monitor script was not updated to reflect
7c7f29
                  these changes.  This lead to the html report incorrectly
7c7f29
                  color coding a successfull status.
7c7f29
7c7f29
Fix Description:  Update the script to ignore "Error (0)"
7c7f29
7c7f29
https://fedorahosted.org/389/ticket/48957
7c7f29
7c7f29
Reviewed by: mreynolds (one line commit rule)
7c7f29
7c7f29
(cherry picked from commit 32ee33b2222a9bbc0657ceb912ca3fa74ee27dcc)
7c7f29
(cherry picked from commit cf5683ae112528597af70a4e06cfb51e8e0c3c74)
7c7f29
---
7c7f29
 ldap/admin/src/scripts/repl-monitor.pl.in | 2 +-
7c7f29
 1 file changed, 1 insertion(+), 1 deletion(-)
7c7f29
7c7f29
diff --git a/ldap/admin/src/scripts/repl-monitor.pl.in b/ldap/admin/src/scripts/repl-monitor.pl.in
7c7f29
index aa7ab1e..a3efa8e 100755
7c7f29
--- a/ldap/admin/src/scripts/repl-monitor.pl.in
7c7f29
+++ b/ldap/admin/src/scripts/repl-monitor.pl.in
7c7f29
@@ -877,7 +877,7 @@ sub print_consumers
7c7f29
 			}   
7c7f29
 			my $redfontstart = "";
7c7f29
 			my $redfontend = "";
7c7f29
-			if ($status =~ /error/i) {
7c7f29
+			if ($status !~ /Error \(0\)/i) {
7c7f29
 			  $redfontstart = "<font color='red'>";
7c7f29
 			  $redfontend = "</font>";
7c7f29
 			}
7c7f29
-- 
7c7f29
2.4.11
7c7f29