mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-31 15:25:57 +00:00
Merge pull request #27672 from quinton-hoole/2016-06-18-return-error-on-dnsprovider-error
Automatic merge from submit-queue Return error not empty list when dnsprovider returns an error. Without this change, we return an empty list, instead of the error from the underlying dns provider, which makes debugging hard.
This commit is contained in:
commit
d526f82f2f
@ -29,7 +29,7 @@ type Zones struct {
|
||||
func (zones Zones) List() ([]dnsprovider.Zone, error) {
|
||||
response, err := zones.impl.List(zones.project()).Do()
|
||||
if err != nil {
|
||||
return []dnsprovider.Zone{}, nil
|
||||
return nil, err
|
||||
}
|
||||
managedZones := response.ManagedZones()
|
||||
zoneList := make([]dnsprovider.Zone, len(managedZones))
|
||||
|
Loading…
Reference in New Issue
Block a user