From d954ca4d5899d00df2001ec877fc3ffe94ee28d8 Mon Sep 17 00:00:00 2001
From: Chris Ridd <chris.ridd@forgerock.com>
Date: Tue, 09 Apr 2013 14:45:33 +0000
Subject: [PATCH] CR-1523 Fix OPENDJ-818 dsreplication status shows disabled servers as enabled

---
 opends/src/guitools/org/opends/guitools/controlpanel/util/ConfigFromFile.java |    5 ++++-
 1 files changed, 4 insertions(+), 1 deletions(-)

diff --git a/opends/src/guitools/org/opends/guitools/controlpanel/util/ConfigFromFile.java b/opends/src/guitools/org/opends/guitools/controlpanel/util/ConfigFromFile.java
index c71a78f..e115c27 100644
--- a/opends/src/guitools/org/opends/guitools/controlpanel/util/ConfigFromFile.java
+++ b/opends/src/guitools/org/opends/guitools/controlpanel/util/ConfigFromFile.java
@@ -23,6 +23,7 @@
  *
  *
  *      Copyright 2008-2011 Sun Microsystems, Inc.
+ *      Portions copyright 2013 ForgeRock, AS.
  */
 
 package org.opends.guitools.controlpanel.util;
@@ -330,7 +331,9 @@
                 {
                   if (baseDN.getDn().equals(dn))
                   {
-                    baseDN.setType(BaseDNDescriptor.Type.REPLICATED);
+                    baseDN.setType(sync.isEnabled() ?
+                        BaseDNDescriptor.Type.REPLICATED :
+                          BaseDNDescriptor.Type.DISABLED);
                     baseDN.setReplicaID(domain.getServerId());
                   }
                 }

--
Gitblit v1.10.0