mirror of https://github.com/apache/cloudstack.git
bug 6238: fixing some api issues with the deploy vm cmd
status 6238: resolved fixed
This commit is contained in:
parent
abaa66f6e3
commit
29bf0cd718
|
|
@ -92,10 +92,10 @@ public class UpgradeVMExecutor extends BaseAsyncJobExecutor {
|
|||
ServiceOfferingVO offering = ms.findServiceOfferingById(vm.getServiceOfferingId());
|
||||
resultObj.setCpuSpeed(offering.getSpeed());
|
||||
resultObj.setMemory(offering.getRamSize());
|
||||
if(offering.getDisplayText()!=null)
|
||||
resultObj.setServiceOfferingName(offering.getDisplayText());
|
||||
else
|
||||
if(offering.getName()!=null)
|
||||
resultObj.setServiceOfferingName(offering.getName());
|
||||
else
|
||||
resultObj.setServiceOfferingName(offering.getDisplayText());
|
||||
resultObj.setServiceOfferingId(vm.getServiceOfferingId());
|
||||
|
||||
VmStats vmStats = ms.getVmStatistics(vm.getId());
|
||||
|
|
|
|||
Loading…
Reference in New Issue