Fixed the account id

This commit is contained in:
ahuang 2013-07-17 16:21:14 -07:00
parent ee4d067c12
commit cb5ab37916
1 changed files with 1 additions and 1 deletions

View File

@ -353,7 +353,7 @@ public class VirtualMachineManagerImpl extends ManagerBase implements VirtualMac
HypervisorType hyperType) throws InsufficientCapacityException {
VMInstanceVO vm = _vmDao.findVMByInstanceName(vmInstanceName);
Account owner = _entityMgr.findById(Account.class, vm.getId());
Account owner = _entityMgr.findById(Account.class, vm.getAccountId());
if (s_logger.isDebugEnabled()) {
s_logger.debug("Allocating entries for VM: " + vm);