mirror of
https://github.com/apache/cloudstack.git
synced 2025-10-26 08:42:29 +01:00
bug 6725: use serviceOfferingName rather than the API command name when updating the service offering; set memory in the response for UpdateServiceOffering
status 6725: resolved fixed
This commit is contained in:
parent
27cafb2957
commit
f9c1f12778
@ -101,6 +101,7 @@ public class UpdateServiceOfferingCmd extends BaseCmd {
|
||||
response.setDisplayText(offering.getDisplayText());
|
||||
response.setCpuNumber(offering.getCpu());
|
||||
response.setCpuSpeed(offering.getSpeed());
|
||||
response.setMemory(offering.getRamSize());
|
||||
response.setCreated(offering.getCreated());
|
||||
String storageType = offering.getUseLocalStorage() ? "local" : "shared";
|
||||
response.setStorageType(storageType);
|
||||
|
||||
@ -1099,7 +1099,7 @@ public class ConfigurationManagerImpl implements ConfigurationManager {
|
||||
public ServiceOfferingVO updateServiceOffering(UpdateServiceOfferingCmd cmd) {
|
||||
String displayText = cmd.getDisplayText();
|
||||
Long id = cmd.getId();
|
||||
String name = cmd.getName();
|
||||
String name = cmd.getServiceOfferingName();
|
||||
Boolean ha = cmd.getOfferHa();
|
||||
String tags = cmd.getTags();
|
||||
Boolean useVirtualNetwork = cmd.getUseVirtualNetwork();
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user