stratos-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ga...@apache.org
Subject stratos git commit: Handling the undefined export meta data keys
Date Mon, 09 Feb 2015 12:24:06 GMT
Repository: stratos
Updated Branches:
  refs/heads/master b8206ac08 -> f7ffbebd4


Handling the undefined export meta data keys


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

Branch: refs/heads/master
Commit: f7ffbebd4a39be24fadcbc9f779a6721b473d42d
Parents: b8206ac
Author: Gayan Gunarathne <gayang@wso2.com>
Authored: Mon Feb 9 17:36:16 2015 +0530
Committer: Gayan Gunarathne <gayang@wso2.com>
Committed: Mon Feb 9 17:36:16 2015 +0530

----------------------------------------------------------------------
 .../applications/parser/DefaultApplicationParser.java          | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/stratos/blob/f7ffbebd/components/org.apache.stratos.autoscaler/src/main/java/org/apache/stratos/autoscaler/applications/parser/DefaultApplicationParser.java
----------------------------------------------------------------------
diff --git a/components/org.apache.stratos.autoscaler/src/main/java/org/apache/stratos/autoscaler/applications/parser/DefaultApplicationParser.java
b/components/org.apache.stratos.autoscaler/src/main/java/org/apache/stratos/autoscaler/applications/parser/DefaultApplicationParser.java
index 7b2f24a..eb69856 100644
--- a/components/org.apache.stratos.autoscaler/src/main/java/org/apache/stratos/autoscaler/applications/parser/DefaultApplicationParser.java
+++ b/components/org.apache.stratos.autoscaler/src/main/java/org/apache/stratos/autoscaler/applications/parser/DefaultApplicationParser.java
@@ -349,8 +349,10 @@ public class DefaultApplicationParser implements ApplicationParser {
             CartridgeInfo cartridgeInfo = getCartridge(cartridgeType);
 
 		    for (String str : cartridgeInfo.getMetadataKeys()) {
-			    exportMetadataKeys.add(cartridgeContext.getSubscribableInfoContext()
-			                                           .getAlias() + METADATA_APPENDER +str);
+			    if(!StringUtils.isBlank(str)) {
+				    exportMetadataKeys.add(cartridgeContext.getSubscribableInfoContext()
+				                                           .getAlias() + METADATA_APPENDER + str);
+			    }
 		    }
 
 


Mime
View raw message