#502 Update switch name

This commit is contained in:
nkorange 2019-04-02 20:37:28 +08:00
parent d8b768b8a7
commit 210af3980c
2 changed files with 2 additions and 2 deletions

View File

@ -59,5 +59,5 @@ public class SwitchEntry {
public static final String PARAM_JSON = "json";
public static final String OVERRIDDEN_SERVER_STATUS = "overriddenServerStatus";
public static final String INSTANCE_DEFAULT_EPHEMERAL = "instanceDefaultEphemeral";
public static final String DEFAULT_INSTANCE_EPHEMERAL = "defaultInstanceEphemeral";
}

View File

@ -262,7 +262,7 @@ public class SwitchManager implements RecordListener<SwitchDomain> {
switchDomain.setOverriddenServerStatus(status);
}
if (entry.equals(SwitchEntry.INSTANCE_DEFAULT_EPHEMERAL)) {
if (entry.equals(SwitchEntry.DEFAULT_INSTANCE_EPHEMERAL)) {
String defaultEphemeral = value;
switchDomain.setDefaultInstanceEphemeral(Boolean.parseBoolean(defaultEphemeral));
}