X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=blobdiff_plain;f=internal%2Fsdlgoredis%2Fsdlgosentinel.go;h=ac56322bdaa6ad76089b4bfbf14d7840c0c38e5f;hb=77dd13bfb2ac4eb9ab3a4dd79d7a09a8fdc6d299;hp=19468d748dab37e4a1893ab3fe9294d05a70a6d3;hpb=2b62c749ada363a2f20fd8ae34f1a66ad12d307d;p=ric-plt%2Fsdlgo.git diff --git a/internal/sdlgoredis/sdlgosentinel.go b/internal/sdlgoredis/sdlgosentinel.go index 19468d7..ac56322 100644 --- a/internal/sdlgoredis/sdlgosentinel.go +++ b/internal/sdlgoredis/sdlgosentinel.go @@ -134,7 +134,11 @@ func (s *Sentinel) getSentinelsState() (*SentinelsDbState, error) { if redisErr == nil { for _, redisSentinel := range redisVal { sentinelState := readSentinelState(redisSentinel.([]interface{})) - states.States = append(states.States, sentinelState) + // Ignore a sentinel entry with zero port, because missing of fix + // for the Redis Bug #9240. + if sentinelState.Fields.Port != "0" { + states.States = append(states.States, sentinelState) + } } } states.Err = redisErr