We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 298c5ee commit cf7ac9dCopy full SHA for cf7ac9d
1 file changed
server/src/com/cloud/api/query/dao/UserVmJoinDaoImpl.java
@@ -327,7 +327,15 @@ public List<UserVmJoinVO> newUserVmView(UserVm... userVms) {
327
}
328
329
Set<Long> vmIdSet = userVmDataHash.keySet();
330
- return searchByIds(vmIdSet.toArray(new Long[vmIdSet.size()]));
+ List<UserVmJoinVO> uvms = searchByIds(vmIdSet.toArray(new Long[vmIdSet.size()]));
331
+ // populate transit password field from UserVm
332
+ if ( uvms != null ){
333
+ for (UserVmJoinVO uvm : uvms){
334
+ UserVm v = userVmDataHash.get(uvm.getId());
335
+ uvm.setPassword(v.getPassword());
336
+ }
337
338
+ return uvms;
339
340
341
0 commit comments