Updated Branches:
  refs/heads/master 5b19905ed -> a1b72d411

fixing a broken logic by commit  0091a767af458b095f4974f218952c2da2356d77


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

Branch: refs/heads/master
Commit: a1b72d411f4cf09f3972c892f02bb9326e5b02a2
Parents: 5b19905
Author: Nirmal Fernando <[email protected]>
Authored: Sat Dec 14 11:33:20 2013 +0530
Committer: Nirmal Fernando <[email protected]>
Committed: Sat Dec 14 11:33:20 2013 +0530

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


http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/a1b72d41/components/org.apache.stratos.autoscaler/src/main/java/org/apache/stratos/autoscaler/policy/PolicyManager.java
----------------------------------------------------------------------
diff --git 
a/components/org.apache.stratos.autoscaler/src/main/java/org/apache/stratos/autoscaler/policy/PolicyManager.java
 
b/components/org.apache.stratos.autoscaler/src/main/java/org/apache/stratos/autoscaler/policy/PolicyManager.java
index 51cc8e0..0c19d60 100644
--- 
a/components/org.apache.stratos.autoscaler/src/main/java/org/apache/stratos/autoscaler/policy/PolicyManager.java
+++ 
b/components/org.apache.stratos.autoscaler/src/main/java/org/apache/stratos/autoscaler/policy/PolicyManager.java
@@ -104,7 +104,7 @@ public class PolicyManager {
                         "Please deploy the partitions before deploying the 
deployment policies.";
                 throw new InvalidPartitionException(msg);
             }
-            fillPartition(partition, 
PartitionManager.getInstance().getPartitionById(deploymentPolicy.getId()));
+            fillPartition(partition, 
PartitionManager.getInstance().getPartitionById(partitionId));
         }
     }
 

Reply via email to