Skip to content

Commit

Permalink
Merge pull request #13188 from ahrtr/fix_excluded_alarm_issue
Browse files Browse the repository at this point in the history
Skip empty query value(alarm) from the query parameter
  • Loading branch information
spzala authored Jul 8, 2021
2 parents 1e32a08 + d38c383 commit 0cdd558
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion server/etcdserver/api/etcdhttp/metrics.go
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ func getExcludedAlarms(r *http.Request) (alarms AlarmSet) {
alms, found := r.URL.Query()["exclude"]
if found {
for _, alm := range alms {
if len(alms) == 0 {
if len(alm) == 0 {
continue
}
alarms[alm] = struct{}{}
Expand Down

0 comments on commit 0cdd558

Please sign in to comment.