ing
This commit is contained in:
parent
b1e1954a33
commit
58b2bb2fa3
|
@ -12,10 +12,9 @@ import (
|
||||||
)
|
)
|
||||||
|
|
||||||
func Ping(service *omd.Service, pingOption ounp.Option) (ounp.Result, error) {
|
func Ping(service *omd.Service, pingOption ounp.Option) (ounp.Result, error) {
|
||||||
if isDiscoveredByMatcher(service) {
|
if isDiscoveredByMatcher(service) && omd.UnknownServiceKey != service.Key {
|
||||||
return processPing(service, pingOption, matcherPingFunc)
|
return processPing(service, pingOption, matcherPingFunc)
|
||||||
}
|
}
|
||||||
|
|
||||||
return processPing(service, pingOption, connectionPingFunc)
|
return processPing(service, pingOption, connectionPingFunc)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user