Skip to content

Commit cf7ac9d

Browse files
committed
CLOUDSTACK-1277: populating transit password field to UserVmJoinVO in
converting from UserVm to UserVmJoinVO.
1 parent 298c5ee commit cf7ac9d

1 file changed

Lines changed: 9 additions & 1 deletion

File tree

server/src/com/cloud/api/query/dao/UserVmJoinDaoImpl.java

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -327,7 +327,15 @@ public List<UserVmJoinVO> newUserVmView(UserVm... userVms) {
327327
}
328328

329329
Set<Long> vmIdSet = userVmDataHash.keySet();
330-
return searchByIds(vmIdSet.toArray(new Long[vmIdSet.size()]));
330+
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;
331339
}
332340

333341
}

0 commit comments

Comments
 (0)