cloudstack-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mc...@apache.org
Subject git commit: updated refs/heads/master to a97455b
Date Fri, 20 Jun 2014 21:36:40 GMT
Repository: cloudstack
Updated Branches:
  refs/heads/master 736bf540e -> a97455b60


CLOUDSTACK-6971: createAutoScaleVmProfile failed with NPE due to lack of bean
    injection.


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

Branch: refs/heads/master
Commit: a97455b6021be8d57645c6fdee8b3b9e34191af9
Parents: 736bf54
Author: Min Chen <min.chen@citrix.com>
Authored: Fri Jun 20 14:04:26 2014 -0700
Committer: Min Chen <min.chen@citrix.com>
Committed: Fri Jun 20 14:28:26 2014 -0700

----------------------------------------------------------------------
 server/src/com/cloud/network/as/AutoScaleManagerImpl.java | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cloudstack/blob/a97455b6/server/src/com/cloud/network/as/AutoScaleManagerImpl.java
----------------------------------------------------------------------
diff --git a/server/src/com/cloud/network/as/AutoScaleManagerImpl.java b/server/src/com/cloud/network/as/AutoScaleManagerImpl.java
index d4de462..96d82ad 100644
--- a/server/src/com/cloud/network/as/AutoScaleManagerImpl.java
+++ b/server/src/com/cloud/network/as/AutoScaleManagerImpl.java
@@ -108,6 +108,7 @@ import com.cloud.user.dao.UserDao;
 import com.cloud.uservm.UserVm;
 import com.cloud.utils.Pair;
 import com.cloud.utils.Ternary;
+import com.cloud.utils.component.ComponentContext;
 import com.cloud.utils.component.ManagerBase;
 import com.cloud.utils.db.DB;
 import com.cloud.utils.db.EntityManager;
@@ -370,7 +371,7 @@ public class AutoScaleManagerImpl<Type> extends ManagerBase implements
AutoScale
          * For ex. if projectId is given as a string instead of an long value, this
          * will be throwing an error.
          */
-        dispatchChainFactory.getStandardDispatchChain().dispatch(new DispatchTask(new DeployVMCmd(),
deployParams));
+        dispatchChainFactory.getStandardDispatchChain().dispatch(new DispatchTask(ComponentContext.inject(DeployVMCmd.class),
deployParams));
 
         AutoScaleVmProfileVO profileVO =
             new AutoScaleVmProfileVO(cmd.getZoneId(), cmd.getDomainId(), cmd.getAccountId(),
cmd.getServiceOfferingId(), cmd.getTemplateId(), cmd.getOtherDeployParams(),


Mime
View raw message