mirror of https://github.com/apache/cloudstack.git
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
c6d9919c88
commit
0d862a9247
|
|
@ -774,7 +774,8 @@ public class UserVmManagerImpl extends ManagerBase implements UserVmManager, Use
|
|||
Account caller = UserContext.current().getCaller();
|
||||
|
||||
// Verify input parameters
|
||||
UserVmVO vmInstance = _vmDao.findById(vmId);
|
||||
//UserVmVO vmInstance = _vmDao.findById(vmId);
|
||||
VMInstanceVO vmInstance = _vmInstanceDao.findById(vmId);
|
||||
if (vmInstance == null) {
|
||||
throw new InvalidParameterValueException(
|
||||
"unable to find a virtual machine with id " + vmId);
|
||||
|
|
|
|||
Loading…
Reference in New Issue