Skip to content

Commit

Permalink
DGS-18853 Revert change to default rule actions (#3334) (#3345)
Browse files Browse the repository at this point in the history
  • Loading branch information
rayokota authored Oct 17, 2024
1 parent c11bcb0 commit 5e40d15
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 5e40d15

Please sign in to comment.