Skip to content

Commit

Permalink
Revert change to default rule actions (#3334)
Browse files Browse the repository at this point in the history
  • Loading branch information
rayokota authored Oct 14, 2024
1 parent 79aded5 commit 7767bb9
Showing 1 changed file with 2 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -83,16 +83,8 @@ public Rule(@JsonProperty("name") String name,
this.tags = Collections.unmodifiableSortedSet(sortedTags);
this.params = Collections.unmodifiableSortedMap(sortedParams);
this.expr = expr;
this.onSuccess = onSuccess != null
? onSuccess
: mode == RuleMode.WRITEREAD || mode == RuleMode.UPDOWN
? "NONE,NONE"
: "NONE";
this.onFailure = onFailure != null
? onFailure
: mode == RuleMode.WRITEREAD || mode == RuleMode.UPDOWN
? "ERROR,ERROR"
: "ERROR";
this.onSuccess = onSuccess;
this.onFailure = onFailure;
this.disabled = disabled;
}

Expand Down

0 comments on commit 7767bb9

Please sign in to comment.