CLOUDSTACK-5889: UI > VM Wizard > corresonding UI change for new change of deployVirtualMachine API (that customparameter parameter has been renamed)

This commit is contained in:
Jessica Wang 2014-01-16 14:01:09 -08:00
parent 47fd67b7fa
commit 3f359bb641

View File

@ -613,17 +613,17 @@
if (args.$wizard.find('input[name=compute-cpu-cores]').parent().parent().css('display') != 'none') {
if (args.$wizard.find('input[name=compute-cpu-cores]').val().length > 0) {
$.extend(deployVmData, {
'customparameters[0].cpuNumber' : args.$wizard.find('input[name=compute-cpu-cores]').val()
'details[0].cpuNumber' : args.$wizard.find('input[name=compute-cpu-cores]').val()
});
}
if (args.$wizard.find('input[name=compute-cpu]').val().length > 0) {
$.extend(deployVmData, {
'customparameters[0].cpuSpeed' : args.$wizard.find('input[name=compute-cpu]').val()
'details[0].cpuSpeed' : args.$wizard.find('input[name=compute-cpu]').val()
});
}
if (args.$wizard.find('input[name=compute-memory]').val().length > 0) {
$.extend(deployVmData, {
'customparameters[0].memory' : args.$wizard.find('input[name=compute-memory]').val()
'details[0].memory' : args.$wizard.find('input[name=compute-memory]').val()
});
}
}