karaf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jbono...@apache.org
Subject [1/2] karaf-cellar git commit: [KARAF-4721] Added support for clusterOnly and nodeOnly sync policies via shell command
Date Sun, 02 Oct 2016 14:35:33 GMT
Repository: karaf-cellar
Updated Branches:
  refs/heads/master e519b3acb -> 2373eb68b


[KARAF-4721] Added support for clusterOnly and nodeOnly sync policies
via shell command


Project: http://git-wip-us.apache.org/repos/asf/karaf-cellar/repo
Commit: http://git-wip-us.apache.org/repos/asf/karaf-cellar/commit/461cbd54
Tree: http://git-wip-us.apache.org/repos/asf/karaf-cellar/tree/461cbd54
Diff: http://git-wip-us.apache.org/repos/asf/karaf-cellar/diff/461cbd54

Branch: refs/heads/master
Commit: 461cbd546822021f6eb55bcfc142367d9e72582d
Parents: e519b3a
Author: Sergiy Shyrkov <sshyrkov@jahia.com>
Authored: Wed Sep 21 13:09:06 2016 +0200
Committer: Jean-Baptiste Onofré <jbonofre@apache.org>
Committed: Sun Oct 2 16:07:20 2016 +0200

----------------------------------------------------------------------
 .../src/main/java/org/apache/karaf/cellar/shell/SyncCommand.java | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/karaf-cellar/blob/461cbd54/shell/src/main/java/org/apache/karaf/cellar/shell/SyncCommand.java
----------------------------------------------------------------------
diff --git a/shell/src/main/java/org/apache/karaf/cellar/shell/SyncCommand.java b/shell/src/main/java/org/apache/karaf/cellar/shell/SyncCommand.java
index aded14d..ea4cdf4 100644
--- a/shell/src/main/java/org/apache/karaf/cellar/shell/SyncCommand.java
+++ b/shell/src/main/java/org/apache/karaf/cellar/shell/SyncCommand.java
@@ -97,8 +97,8 @@ public class SyncCommand extends ClusterCommandSupport {
             }
         } else {
             // we are in set mode
-            if (!policy.equalsIgnoreCase("cluster") && !policy.equalsIgnoreCase("node")
&& !policy.equalsIgnoreCase("disabled")) {
-                System.err.println("The sync policy " + policy + " is not valid. Valid sync
policies are: cluster, node, disabled");
+            if (!policy.equalsIgnoreCase("cluster") && !policy.equalsIgnoreCase("node")
&& !policy.equalsIgnoreCase("clusterOnly") && !policy.equalsIgnoreCase("nodeOnly")
&& !policy.equalsIgnoreCase("disabled")) {
+                System.err.println("The sync policy " + policy + " is not valid. Valid sync
policies are: cluster, node, clusterOnly, nodeOnly, disabled");
                 return null;
             }
             for (Group group : groups) {


Mime
View raw message