Skip to content

Commit 59312dd

Browse files
bvbharatbvbharatk
authored andcommitted
CLOUDSTACK-9638 Problems caused when inputting double-byte numbers for custom compute offerings
1 parent bb274a1 commit 59312dd

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
@@ -3571,7 +3571,8 @@ public UserVmVO doInTransaction(TransactionStatus status) throws InsufficientCap
35713571

35723572
_vmDao.persist(vm);
35733573
for (String key : customParameters.keySet()) {
3574-
vm.setDetail(key, customParameters.get(key));
3574+
//handle double byte strings.
3575+
vm.setDetail(key, Integer.toString(Integer.parseInt(customParameters.get(key))));
35753576
}
35763577
vm.setDetail("deployvm", "true");
35773578
_vmDao.saveDetails(vm);

0 commit comments

Comments
 (0)