You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@stratos.apache.org by ra...@apache.org on 2015/09/23 16:05:56 UTC

[3/3] stratos git commit: Fixing STRATOS-1576

Fixing STRATOS-1576


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

Branch: refs/heads/stratos-4.1.x
Commit: a2adec321eeca152adec3cad6c34230bf5f2e23e
Parents: 9a0ec07
Author: Akila Perera <ra...@gmail.com>
Authored: Wed Sep 23 19:35:35 2015 +0530
Committer: Akila Perera <ra...@gmail.com>
Committed: Wed Sep 23 19:35:35 2015 +0530

----------------------------------------------------------------------
 .../stratos/cloud/controller/iaases/kubernetes/KubernetesIaas.java | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/stratos/blob/a2adec32/components/org.apache.stratos.cloud.controller/src/main/java/org/apache/stratos/cloud/controller/iaases/kubernetes/KubernetesIaas.java
----------------------------------------------------------------------
diff --git a/components/org.apache.stratos.cloud.controller/src/main/java/org/apache/stratos/cloud/controller/iaases/kubernetes/KubernetesIaas.java b/components/org.apache.stratos.cloud.controller/src/main/java/org/apache/stratos/cloud/controller/iaases/kubernetes/KubernetesIaas.java
index 884e681..9f42816 100644
--- a/components/org.apache.stratos.cloud.controller/src/main/java/org/apache/stratos/cloud/controller/iaases/kubernetes/KubernetesIaas.java
+++ b/components/org.apache.stratos.cloud.controller/src/main/java/org/apache/stratos/cloud/controller/iaases/kubernetes/KubernetesIaas.java
@@ -669,7 +669,7 @@ public class KubernetesIaas extends Iaas {
 
     private String trimLabel(String key, String value) {
         if(StringUtils.isNotEmpty(value) && (value.length() > KubernetesConstants.MAX_LABEL_LENGTH)) {
-            String trimmed = value.substring(0, KubernetesConstants.MAX_LABEL_LENGTH - 2);
+            String trimmed = value.substring(0, KubernetesConstants.MAX_LABEL_LENGTH - 2).concat("X");
             log.warn(String.format("Kubernetes label trimmed: [key] %s [original] %s [trimmed] %s",
                     key, value, trimmed));
             return trimmed;