This is an automated email from the ASF dual-hosted git repository.
nvazquez pushed a commit to branch 4.16
in repository https://gitbox.apache.org/repos/asf/cloudstack.git
The following commit(s) were added to refs/heads/4.16 by this push:
new b2338f71585 Updated reset configuration, to return the updated config
value in the response (#6284)
b2338f71585 is described below
commit b2338f71585916cb49b8616a189953ac89c904a2
Author: Suresh Kumar Anaparti <[email protected]>
AuthorDate: Wed Apr 20 01:37:51 2022 +0530
Updated reset configuration, to return the updated config value in the
response (#6284)
---
.../src/main/java/com/cloud/configuration/ConfigurationManagerImpl.java | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git
a/server/src/main/java/com/cloud/configuration/ConfigurationManagerImpl.java
b/server/src/main/java/com/cloud/configuration/ConfigurationManagerImpl.java
index e4e6f0953da..0e661ce62b3 100755
--- a/server/src/main/java/com/cloud/configuration/ConfigurationManagerImpl.java
+++ b/server/src/main/java/com/cloud/configuration/ConfigurationManagerImpl.java
@@ -1043,7 +1043,7 @@ public class ConfigurationManagerImpl extends ManagerBase
implements Configurati
s_logger.error("Failed to reset configuration option,
name: " + name + ", defaultValue:" + defaultValue);
throw new CloudRuntimeException("Failed to reset
configuration value. Please contact Cloud Support.");
}
- optionalValue = Optional.ofNullable(configKey != null ?
configKey.value() : config.getValue());
+ optionalValue = Optional.ofNullable(configKey != null ?
configKey.value() : _configDao.findByName(name).getValue());
newValue = optionalValue.isPresent() ?
optionalValue.get().toString() : defaultValue;
}