Repository: stratos
Updated Branches:
  refs/heads/docker-integration 309858979 -> f416e8356


Fixing an incorrect login in the Kub. Cluster Monitor


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

Branch: refs/heads/docker-integration
Commit: f416e83565d5507ed6973cba2f171562455889c4
Parents: 3098589
Author: Nirmal Fernando <[email protected]>
Authored: Sun Sep 21 19:10:01 2014 +0530
Committer: Nirmal Fernando <[email protected]>
Committed: Sun Sep 21 19:10:12 2014 +0530

----------------------------------------------------------------------
 .../stratos/autoscaler/monitor/KubernetesClusterMonitor.java       | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/stratos/blob/f416e835/components/org.apache.stratos.autoscaler/src/main/java/org/apache/stratos/autoscaler/monitor/KubernetesClusterMonitor.java
----------------------------------------------------------------------
diff --git 
a/components/org.apache.stratos.autoscaler/src/main/java/org/apache/stratos/autoscaler/monitor/KubernetesClusterMonitor.java
 
b/components/org.apache.stratos.autoscaler/src/main/java/org/apache/stratos/autoscaler/monitor/KubernetesClusterMonitor.java
index a534bed..ac5be7b 100644
--- 
a/components/org.apache.stratos.autoscaler/src/main/java/org/apache/stratos/autoscaler/monitor/KubernetesClusterMonitor.java
+++ 
b/components/org.apache.stratos.autoscaler/src/main/java/org/apache/stratos/autoscaler/monitor/KubernetesClusterMonitor.java
@@ -95,7 +95,7 @@ public class KubernetesClusterMonitor implements Runnable{
 
                        if (this.numberOfReplicasInServiceCluster < 
minReplicas) {
                                
-                               while (success) {
+                               while (!success) {
                                        try {
                                                
CloudControllerClient.getInstance().createContainer(kubernetesClusterId, 
clusterId);
                                                success = true;

Reply via email to