mirror of
https://github.com/apache/cloudstack.git
synced 2025-10-26 08:42:29 +01:00
CLOUDSTACK-1277: populating transit password field to UserVmJoinVO in
converting from UserVm to UserVmJoinVO.
This commit is contained in:
parent
298c5ee06b
commit
cf7ac9d6c4
@ -327,7 +327,15 @@ public class UserVmJoinDaoImpl extends GenericDaoBase<UserVmJoinVO, Long> implem
|
|||||||
}
|
}
|
||||||
|
|
||||||
Set<Long> vmIdSet = userVmDataHash.keySet();
|
Set<Long> vmIdSet = userVmDataHash.keySet();
|
||||||
return searchByIds(vmIdSet.toArray(new Long[vmIdSet.size()]));
|
List<UserVmJoinVO> uvms = searchByIds(vmIdSet.toArray(new Long[vmIdSet.size()]));
|
||||||
|
// populate transit password field from UserVm
|
||||||
|
if ( uvms != null ){
|
||||||
|
for (UserVmJoinVO uvm : uvms){
|
||||||
|
UserVm v = userVmDataHash.get(uvm.getId());
|
||||||
|
uvm.setPassword(v.getPassword());
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return uvms;
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user