Repository: incubator-stratos
Updated Branches:
  refs/heads/master 87be512ee -> 5064b0c63


fixing a bug in agent config


Project: http://git-wip-us.apache.org/repos/asf/incubator-stratos/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-stratos/commit/5064b0c6
Tree: http://git-wip-us.apache.org/repos/asf/incubator-stratos/tree/5064b0c6
Diff: http://git-wip-us.apache.org/repos/asf/incubator-stratos/diff/5064b0c6

Branch: refs/heads/master
Commit: 5064b0c63d4e6d5c008cd8d7d0540bf6c12346e4
Parents: 87be512
Author: Nirmal Fernando <[email protected]>
Authored: Tue Mar 18 09:32:45 2014 +0530
Committer: Nirmal Fernando <[email protected]>
Committed: Tue Mar 18 09:32:45 2014 +0530

----------------------------------------------------------------------
 .../cartridge/agent/config/CartridgeAgentConfiguration.java        | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/5064b0c6/components/org.apache.stratos.cartridge.agent/src/main/java/org/apache/stratos/cartridge/agent/config/CartridgeAgentConfiguration.java
----------------------------------------------------------------------
diff --git 
a/components/org.apache.stratos.cartridge.agent/src/main/java/org/apache/stratos/cartridge/agent/config/CartridgeAgentConfiguration.java
 
b/components/org.apache.stratos.cartridge.agent/src/main/java/org/apache/stratos/cartridge/agent/config/CartridgeAgentConfiguration.java
index 622c016..4450e2e 100644
--- 
a/components/org.apache.stratos.cartridge.agent/src/main/java/org/apache/stratos/cartridge/agent/config/CartridgeAgentConfiguration.java
+++ 
b/components/org.apache.stratos.cartridge.agent/src/main/java/org/apache/stratos/cartridge/agent/config/CartridgeAgentConfiguration.java
@@ -103,7 +103,7 @@ public class CartridgeAgentConfiguration {
                 for (String string : params) {
                                        if (string != null) {
                                                String[] var = 
string.split("=");
-                                               if (var.length > 2) {
+                                               if (var.length >= 2) {
                                                        parameters.put(var[0], 
var[1]);
                                                }
                                        }

Reply via email to