mirror of https://github.com/apache/cloudstack.git
Change the `value` parameter of the `updateConfiguration` API to be required (#10790)
This commit is contained in:
parent
425c4e3312
commit
bc3d7c314b
|
|
@ -1031,6 +1031,10 @@ public class ConfigurationManagerImpl extends ManagerBase implements Configurati
|
|||
category = config.getCategory();
|
||||
}
|
||||
|
||||
if (value == null) {
|
||||
throw new InvalidParameterValueException(String.format("The new value for the [%s] configuration must be given.", name));
|
||||
}
|
||||
|
||||
validateIpAddressRelatedConfigValues(name, value);
|
||||
validateConflictingConfigValue(name, value);
|
||||
|
||||
|
|
@ -1039,10 +1043,6 @@ public class ConfigurationManagerImpl extends ManagerBase implements Configurati
|
|||
throw new CloudRuntimeException("Only Root Admin is allowed to edit this configuration.");
|
||||
}
|
||||
|
||||
if (value == null) {
|
||||
return _configDao.findByName(name);
|
||||
}
|
||||
|
||||
ConfigKey.Scope scope = null;
|
||||
Long id = null;
|
||||
int paramCountCheck = 0;
|
||||
|
|
|
|||
Loading…
Reference in New Issue