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:
k8s-merge-robot
2016-06-18 17:08:06 -07:00
committed by GitHub

View File

@@ -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))