Skip to content

Commit 3f33af4

Browse files
author
Rakesh Venkatesh
committed
rename variables
1 parent 0ea0465 commit 3f33af4

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

server/src/main/java/com/cloud/configuration/ConfigurationManagerImpl.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -434,9 +434,9 @@ public class ConfigurationManagerImpl extends ManagerBase implements Configurati
434434
public static final ConfigKey<Boolean> SET_HOST_DOWN_TO_MAINTENANCE = new ConfigKey<Boolean>(Boolean.class, "set.host.down.to.maintenance", "Advanced", "false",
435435
"Indicates whether the host in down state can be put into maintenance state so thats its not enabled after it comes back.",
436436
true, ConfigKey.Scope.Zone, null);
437-
public static final ConfigKey<Boolean> EnableAccountSettingsForDomain = new ConfigKey<Boolean>(Boolean.class, "enable.account.settings.for.domain", "Advanced", "false",
437+
public static final ConfigKey<Boolean> ENABLE_ACCOUNT_SETTINGS_FOR_DOMAIN = new ConfigKey<Boolean>(Boolean.class, "enable.account.settings.for.domain", "Advanced", "false",
438438
"Indicates whether to add account settings for domain. If true, account settings will be added to domain settings, all accounts in the domain will inherit the domain setting if account setting is not set.", true, ConfigKey.Scope.Global, null);
439-
public static final ConfigKey<Boolean> EnableDomainSettingsForChildDomain = new ConfigKey<Boolean>(Boolean.class, "enable.domain.settings.for.child.domain", "Advanced", "false",
439+
public static final ConfigKey<Boolean> ENABLE_DOMAIN_SETTINGS_FOR_CHILD_DOMAIN = new ConfigKey<Boolean>(Boolean.class, "enable.domain.settings.for.child.domain", "Advanced", "false",
440440
"Indicates whether the settings of parent domain should be applied for child domain. If true, the child domain will get value from parent domain if its not configured in child domain else global value is taken.",
441441
true, ConfigKey.Scope.Global, null);
442442

@@ -879,7 +879,7 @@ private String validateConfigurationValue(final String name, String value, final
879879
final String configScope = cfg.getScope();
880880
if (scope != null) {
881881
if (!configScope.contains(scope) &&
882-
!(EnableAccountSettingsForDomain.value() && configScope.contains(ConfigKey.Scope.Account.toString()) &&
882+
!(ENABLE_ACCOUNT_SETTINGS_FOR_DOMAIN.value() && configScope.contains(ConfigKey.Scope.Account.toString()) &&
883883
scope.equals(ConfigKey.Scope.Domain.toString()))) {
884884
s_logger.error("Invalid scope id provided for the parameter " + name);
885885
return "Invalid scope id provided for the parameter " + name;
@@ -6557,7 +6557,7 @@ public ConfigKey<?>[] getConfigKeys() {
65576557
return new ConfigKey<?>[] {SystemVMUseLocalStorage, IOPS_MAX_READ_LENGTH, IOPS_MAX_WRITE_LENGTH,
65586558
BYTES_MAX_READ_LENGTH, BYTES_MAX_WRITE_LENGTH, ADD_HOST_ON_SERVICE_RESTART_KVM, SET_HOST_DOWN_TO_MAINTENANCE, VM_SERVICE_OFFERING_MAX_CPU_CORES,
65596559
VM_SERVICE_OFFERING_MAX_RAM_SIZE, VM_USERDATA_MAX_LENGTH, MIGRATE_VM_ACROSS_CLUSTERS,
6560-
EnableAccountSettingsForDomain, EnableDomainSettingsForChildDomain
6560+
ENABLE_ACCOUNT_SETTINGS_FOR_DOMAIN, ENABLE_DOMAIN_SETTINGS_FOR_CHILD_DOMAIN
65616561
};
65626562
}
65636563
}

server/src/main/java/com/cloud/server/ManagementServerImpl.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2018,7 +2018,7 @@ public Pair<List<? extends Configuration>, Integer> searchForConfigurations(fina
20182018

20192019
if (scope != null && !scope.isEmpty()) {
20202020
// getting the list of parameters at requested scope
2021-
if (ConfigurationManagerImpl.EnableAccountSettingsForDomain.value()
2021+
if (ConfigurationManagerImpl.ENABLE_ACCOUNT_SETTINGS_FOR_DOMAIN.value()
20222022
&& scope.equals(ConfigKey.Scope.Domain.toString())) {
20232023
sc.addAnd("scope", SearchCriteria.Op.IN, ConfigKey.Scope.Domain.toString(), ConfigKey.Scope.Account.toString());
20242024
} else {

0 commit comments

Comments
 (0)