Merge pull request #13188 from ahrtr/fix_excluded_alarm_issue

Skip empty query value(alarm) from the query parameter
This commit is contained in:
Sahdev Zala 2021-07-08 10:11:14 -04:00 committed by GitHub
commit 0cdd558361
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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{}{}