Fix #249
This commit is contained in:
parent
031f2f1a16
commit
8fe38f7dcb
@ -365,7 +365,7 @@ public class ApiCommands {
|
||||
String envAndSite = BaseServlet.optional(request, "envAndSites", StringUtils.EMPTY);
|
||||
boolean resetWeight = Boolean.parseBoolean(BaseServlet.optional(request, "resetWeight", "false"));
|
||||
boolean enableHealthCheck = Boolean.parseBoolean(BaseServlet.optional(request, "enableHealthCheck", "true"));
|
||||
boolean enable = Boolean.parseBoolean(BaseServlet.optional(request, "enable", "true"));
|
||||
boolean enable = Boolean.parseBoolean(BaseServlet.optional(request, "serviceEnabled", "true"));
|
||||
String disabledSites = BaseServlet.optional(request, "disabledSites", StringUtils.EMPTY);
|
||||
boolean eanbleClientBeat = Boolean.parseBoolean(BaseServlet.optional(request, "enableClientBeat", "false"));
|
||||
String clusterName = BaseServlet.optional(request, "clusterName", UtilsAndCommons.DEFAULT_CLUSTER_NAME);
|
||||
@ -734,7 +734,7 @@ public class ApiCommands {
|
||||
dom.setEnableHealthCheck(Boolean.parseBoolean(enableHealthCheck));
|
||||
}
|
||||
|
||||
String enabled = BaseServlet.optional(request, "enabled", StringUtils.EMPTY);
|
||||
String enabled = BaseServlet.optional(request, "serviceEnabled", StringUtils.EMPTY);
|
||||
if (!StringUtils.isEmpty(enabled)) {
|
||||
dom.setEnabled(Boolean.parseBoolean(enabled));
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user