From 91563f41959bd84d371e8f943064bd1cab7fac0c Mon Sep 17 00:00:00 2001
From: jvergara <jvergara@localhost>
Date: Wed, 08 Jul 2009 23:48:32 +0000
Subject: [PATCH] Follow up to fix for issue 4092 (dsreplication should allow to configure servers with no replication server and servers with only a replication server) Fix an issue with port check in non-interactive mode when the user decides not to configure a replication port. Fix an issue when adding a replication domain (with no replication server) to an existing topology.

---
 opendj-sdk/opends/src/ads/org/opends/admin/ads/ServerDescriptor.java |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/opendj-sdk/opends/src/ads/org/opends/admin/ads/ServerDescriptor.java b/opendj-sdk/opends/src/ads/org/opends/admin/ads/ServerDescriptor.java
index 47e75b0..468e4d5 100644
--- a/opendj-sdk/opends/src/ads/org/opends/admin/ads/ServerDescriptor.java
+++ b/opendj-sdk/opends/src/ads/org/opends/admin/ads/ServerDescriptor.java
@@ -299,7 +299,8 @@
   public void setAdsProperties(
       Map<ADSContext.ServerProperty, Object> adsProperties)
   {
-    this.adsProperties = adsProperties;
+    this.adsProperties.clear();
+    this.adsProperties.putAll(adsProperties);
   }
 
   /**

--
Gitblit v1.10.0