Skip to content

Commit d03f499

Browse files
bvbharatRohit Yadav
authored andcommitted
CLOUDSTACK-9638 Problems caused when inputting double-byte numbers for custom compute offerings
(cherry picked from commit 59312dd) Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
1 parent 64d09c7 commit d03f499

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

server/src/com/cloud/vm/UserVmManagerImpl.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3602,7 +3602,8 @@ public UserVmVO doInTransaction(TransactionStatus status) throws InsufficientCap
36023602

36033603
_vmDao.persist(vm);
36043604
for (String key : customParameters.keySet()) {
3605-
vm.setDetail(key, customParameters.get(key));
3605+
//handle double byte strings.
3606+
vm.setDetail(key, Integer.toString(Integer.parseInt(customParameters.get(key))));
36063607
}
36073608
_vmDao.saveDetails(vm);
36083609

0 commit comments

Comments
 (0)