mirror of
https://github.com/apache/cloudstack.git
synced 2025-10-26 08:42:29 +01:00
CLOUDSTACK-10360: Change the method name. (#2598)
The method is named as "scoped" that seems to whether the variable config is scoped in _scopedStorages or not. Actually, the method tries to find a storage of which scope equals to the scope of config. So that, the method name "findStorage" should be more clear than "scoped".
This commit is contained in:
parent
4277b92abe
commit
93509a431c
@ -152,7 +152,7 @@ public class ConfigKey<T> {
|
||||
return value();
|
||||
}
|
||||
|
||||
String value = s_depot != null ? s_depot.scoped(this).getConfigValue(id, this) : null;
|
||||
String value = s_depot != null ? s_depot.findScopedConfigStorage(this).getConfigValue(id, this) : null;
|
||||
if (value == null) {
|
||||
return value();
|
||||
} else {
|
||||
|
||||
@ -166,7 +166,7 @@ public class ConfigDepotImpl implements ConfigDepot, ConfigDepotAdmin {
|
||||
return _configDao;
|
||||
}
|
||||
|
||||
public ScopedConfigStorage scoped(ConfigKey<?> config) {
|
||||
public ScopedConfigStorage findScopedConfigStorage(ConfigKey<?> config) {
|
||||
for (ScopedConfigStorage storage : _scopedStorages) {
|
||||
if (storage.getScope() == config.scope()) {
|
||||
return storage;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user