diff --git a/chaosblade-exec-common/src/main/java/com/alibaba/chaosblade/exec/common/util/ConfigUtil.java b/chaosblade-exec-common/src/main/java/com/alibaba/chaosblade/exec/common/util/ConfigUtil.java index cf56d8b1..9a879df9 100644 --- a/chaosblade-exec-common/src/main/java/com/alibaba/chaosblade/exec/common/util/ConfigUtil.java +++ b/chaosblade-exec-common/src/main/java/com/alibaba/chaosblade/exec/common/util/ConfigUtil.java @@ -48,7 +48,7 @@ public static Boolean getActionFlag(EnhancerModel enhancerModel, String flagKey, String value = getActionFlag(enhancerModel, flagKey); if (value == null) { return defaultValue; } try { - return Boolean.parseBoolean(flagKey); + return Boolean.parseBoolean(value); } catch (Exception ex) { return defaultValue; }