mirror of
https://github.com/minio/minio.git
synced 2025-04-15 00:35:31 -04:00
parent
74efbb4153
commit
d16a409943
@ -56,7 +56,12 @@ func (c *coreDNS) List() ([]SrvRecord, error) {
|
|||||||
if err != nil {
|
if err != nil {
|
||||||
return nil, err
|
return nil, err
|
||||||
}
|
}
|
||||||
srvRecords = append(srvRecords, records...)
|
for _, record := range records {
|
||||||
|
if record.Key == "" {
|
||||||
|
continue
|
||||||
|
}
|
||||||
|
srvRecords = append(srvRecords, record)
|
||||||
|
}
|
||||||
}
|
}
|
||||||
return srvRecords, nil
|
return srvRecords, nil
|
||||||
}
|
}
|
||||||
@ -130,7 +135,7 @@ func (c *coreDNS) list(key string) ([]SrvRecord, error) {
|
|||||||
// /skydns/net/miniocloud/10.0.0.1 that may exist as
|
// /skydns/net/miniocloud/10.0.0.1 that may exist as
|
||||||
// dns entry for the server (rather than the bucket
|
// dns entry for the server (rather than the bucket
|
||||||
// itself).
|
// itself).
|
||||||
if srvRecord.Key == "" || srvRecord.Key == etcdPathSeparator {
|
if srvRecord.Key == "" {
|
||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user