You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@stratos.apache.org by re...@apache.org on 2014/12/10 06:47:11 UTC

stratos git commit: fixing deployment policy to use applicationId

Repository: stratos
Updated Branches:
  refs/heads/4.1.0-test ff1d57ae5 -> 7056117f0


fixing deployment policy to use applicationId


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

Branch: refs/heads/4.1.0-test
Commit: 7056117f0f2de0301cd99358f1bcce08c4dca507
Parents: ff1d57a
Author: reka <rt...@gmail.com>
Authored: Wed Dec 10 11:16:24 2014 +0530
Committer: reka <rt...@gmail.com>
Committed: Wed Dec 10 11:16:53 2014 +0530

----------------------------------------------------------------------
 .../org/apache/stratos/autoscaler/api/AutoScalerServiceImpl.java   | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/stratos/blob/7056117f/components/org.apache.stratos.autoscaler/src/main/java/org/apache/stratos/autoscaler/api/AutoScalerServiceImpl.java
----------------------------------------------------------------------
diff --git a/components/org.apache.stratos.autoscaler/src/main/java/org/apache/stratos/autoscaler/api/AutoScalerServiceImpl.java b/components/org.apache.stratos.autoscaler/src/main/java/org/apache/stratos/autoscaler/api/AutoScalerServiceImpl.java
index ccb0e8d..dff6909 100644
--- a/components/org.apache.stratos.autoscaler/src/main/java/org/apache/stratos/autoscaler/api/AutoScalerServiceImpl.java
+++ b/components/org.apache.stratos.autoscaler/src/main/java/org/apache/stratos/autoscaler/api/AutoScalerServiceImpl.java
@@ -103,7 +103,7 @@ public class AutoScalerServiceImpl implements AutoScalerServiceInterface {
     @Override
     public boolean deployDeploymentPolicy(DeploymentPolicy policy) {
     	// Get the deployment policy
-    	DeploymentPolicy deploymentPolicy = this.getDeploymentPolicy(policy.getId());
+    	DeploymentPolicy deploymentPolicy = this.getDeploymentPolicy(policy.getApplicationId());
     	if (deploymentPolicy == null) {
     		return false;
     	}