mirror of
https://github.com/apache/cloudstack.git
synced 2025-10-26 08:42:29 +01:00
CLOUDSTACK-3948: fixed createAutoscaleVmProfile - for situation when no autoscaleUserId is passed in, take it from caller user id, not caller account id
This commit is contained in:
parent
9b7c4a6c47
commit
9f66d18de6
@ -338,13 +338,6 @@ public class AutoScaleManagerImpl<Type> extends ManagerBase implements AutoScale
|
|||||||
*/
|
*/
|
||||||
ApiDispatcher.processParameters(new DeployVMCmd(), deployParams);
|
ApiDispatcher.processParameters(new DeployVMCmd(), deployParams);
|
||||||
|
|
||||||
<<<<<<< HEAD
|
|
||||||
if (autoscaleUserId == null) {
|
|
||||||
autoscaleUserId = CallContext.current().getCallingUserId();
|
|
||||||
}
|
|
||||||
|
|
||||||
=======
|
|
||||||
>>>>>>> a9148d9... CLOUDSTACK-3948: fixed createAutoscaleVmProfile - for situation when no autoscaleUserId is passed in, take it from caller user id, not caller account id
|
|
||||||
AutoScaleVmProfileVO profileVO = new AutoScaleVmProfileVO(cmd.getZoneId(), cmd.getDomainId(), cmd.getAccountId(), cmd.getServiceOfferingId(), cmd.getTemplateId(), cmd.getOtherDeployParams(),
|
AutoScaleVmProfileVO profileVO = new AutoScaleVmProfileVO(cmd.getZoneId(), cmd.getDomainId(), cmd.getAccountId(), cmd.getServiceOfferingId(), cmd.getTemplateId(), cmd.getOtherDeployParams(),
|
||||||
cmd.getCounterParamList(), cmd.getDestroyVmGraceperiod(), autoscaleUserId);
|
cmd.getCounterParamList(), cmd.getDestroyVmGraceperiod(), autoscaleUserId);
|
||||||
profileVO = checkValidityAndPersist(profileVO);
|
profileVO = checkValidityAndPersist(profileVO);
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user