mirror of
https://github.com/apache/cloudstack.git
synced 2025-10-26 08:42:29 +01:00
CLOUDSTACK-3712
Use Vminstance instead of user vm for scaling stopped vms. Signed off by : nitin mehta<nitin.mehta@citrix.com>
This commit is contained in:
parent
1744ed7ad5
commit
1f64354ec8
@ -769,7 +769,8 @@ public class UserVmManagerImpl extends ManagerBase implements UserVmManager, Vir
|
|||||||
Account caller = CallContext.current().getCallingAccount();
|
Account caller = CallContext.current().getCallingAccount();
|
||||||
|
|
||||||
// Verify input parameters
|
// Verify input parameters
|
||||||
UserVmVO vmInstance = _vmDao.findById(vmId);
|
//UserVmVO vmInstance = _vmDao.findById(vmId);
|
||||||
|
VMInstanceVO vmInstance = _vmInstanceDao.findById(vmId);
|
||||||
if (vmInstance == null) {
|
if (vmInstance == null) {
|
||||||
throw new InvalidParameterValueException(
|
throw new InvalidParameterValueException(
|
||||||
"unable to find a virtual machine with id " + vmId);
|
"unable to find a virtual machine with id " + vmId);
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user