Commit 451a0bd5 authored by John Belamaric's avatar John Belamaric Committed by GitHub

Merge pull request #457 from kdima/kdima-patch-1

Return no items if less than 3 items in service segments
parents 5d2e4db9 8cb5a057
......@@ -182,6 +182,9 @@ func (k *Kubernetes) Records(name string, exact bool) ([]msg.Service, error) {
)
zone, serviceSegments := k.getZoneForName(name)
if len(serviceSegments) < 3 {
return nil, errNoItems
}
// TODO: Implementation above globbed together segments for the serviceName if
// multiple segments remained. Determine how to do similar globbing using
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment