You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@stratos.apache.org by la...@apache.org on 2015/03/30 12:29:48 UTC

stratos git commit: Fix STRATOS-1292

Repository: stratos
Updated Branches:
  refs/heads/master a00144634 -> 8062428e2


Fix STRATOS-1292


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

Branch: refs/heads/master
Commit: 8062428e21c8d9aafe6e6721d3eece42f31e827c
Parents: a001446
Author: Lahiru Sandaruwan <la...@apache.org>
Authored: Mon Mar 30 15:59:36 2015 +0530
Committer: Lahiru Sandaruwan <la...@apache.org>
Committed: Mon Mar 30 15:59:36 2015 +0530

----------------------------------------------------------------------
 .../stratos/autoscaler/services/impl/AutoscalerServiceImpl.java   | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/stratos/blob/8062428e/components/org.apache.stratos.autoscaler/src/main/java/org/apache/stratos/autoscaler/services/impl/AutoscalerServiceImpl.java
----------------------------------------------------------------------
diff --git a/components/org.apache.stratos.autoscaler/src/main/java/org/apache/stratos/autoscaler/services/impl/AutoscalerServiceImpl.java b/components/org.apache.stratos.autoscaler/src/main/java/org/apache/stratos/autoscaler/services/impl/AutoscalerServiceImpl.java
index 538994a..458cc10 100644
--- a/components/org.apache.stratos.autoscaler/src/main/java/org/apache/stratos/autoscaler/services/impl/AutoscalerServiceImpl.java
+++ b/components/org.apache.stratos.autoscaler/src/main/java/org/apache/stratos/autoscaler/services/impl/AutoscalerServiceImpl.java
@@ -548,7 +548,8 @@ public class AutoscalerServiceImpl implements AutoscalerService {
         try {
             Application application = ApplicationManager.getApplications().getApplication(applicationId);
             if(application != null) {
-                ClusterDataHolder clusterData = application.getClusterData(alias);
+
+                ClusterDataHolder clusterData = application.getClusterDataHolderRecursivelyByAlias(alias);
                 if(clusterData != null) {
                     return clusterData.getClusterId();
                 }