fix: regression introduced in federated listing buckets

regression was introduced in
6cd255d516b1981ffb3bcae6434c55f09e30b0a0 fix it properly.
This commit is contained in:
Harshavardhana 2021-02-01 12:03:28 -08:00
parent 547efecd82
commit f737a027cf

View File

@ -79,7 +79,7 @@ func (c *CoreDNS) Get(bucket string) ([]SrvRecord, error) {
var srvRecords []SrvRecord
for _, domainName := range c.domainNames {
key := msg.Path(fmt.Sprintf("%s.%s.", bucket, domainName), c.prefixPath)
records, err := c.list(key+etcdPathSeparator, false)
records, err := c.list(key, false)
if err != nil {
return nil, err
}