File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -106,7 +106,7 @@ type Config struct {
106106func (config * Config ) GetEndpointByKey (key string ) * endpoint.Endpoint {
107107 for i := 0 ; i < len (config .Endpoints ); i ++ {
108108 ep := config .Endpoints [i ]
109- if ep .Key () == key {
109+ if ep .Key () == strings . ToLower ( key ) {
110110 return ep
111111 }
112112 }
@@ -116,7 +116,7 @@ func (config *Config) GetEndpointByKey(key string) *endpoint.Endpoint {
116116func (config * Config ) GetExternalEndpointByKey (key string ) * endpoint.ExternalEndpoint {
117117 for i := 0 ; i < len (config .ExternalEndpoints ); i ++ {
118118 ee := config .ExternalEndpoints [i ]
119- if ee .Key () == key {
119+ if ee .Key () == strings . ToLower ( key ) {
120120 return ee
121121 }
122122 }
@@ -411,8 +411,8 @@ func validateAlertingConfig(alertingConfig *alerting.Config, endpoints []*endpoi
411411 alert .TypeGitea ,
412412 alert .TypeGoogleChat ,
413413 alert .TypeGotify ,
414- alert .TypeHomeAssistant ,
415- alert .TypeIlert ,
414+ alert .TypeHomeAssistant ,
415+ alert .TypeIlert ,
416416 alert .TypeIncidentIO ,
417417 alert .TypeJetBrainsSpace ,
418418 alert .TypeMatrix ,
You can’t perform that action at this time.
0 commit comments