X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/5dbf5c8ea2d9eb2bc8e10a03ca625f12ed71f12c..57b96147e575d7630ddf81cbb2c554d3adc9c7e2:/sdk/go/keepclient/support.go diff --git a/sdk/go/keepclient/support.go b/sdk/go/keepclient/support.go index 9db6ebcbaa..940a110081 100644 --- a/sdk/go/keepclient/support.go +++ b/sdk/go/keepclient/support.go @@ -76,7 +76,7 @@ func (this *KeepClient) setClientSettingsStore() { } } -func (this *KeepClient) DiscoverKeepServers() error { +func (this *KeepClient) DiscoverKeepServers() (map[string]string, error) { type svcList struct { Items []keepDisk `json:"items"` } @@ -86,7 +86,7 @@ func (this *KeepClient) DiscoverKeepServers() error { if err != nil { if err := this.Arvados.List("keep_disks", nil, &m); err != nil { - return err + return nil, err } } @@ -121,7 +121,7 @@ func (this *KeepClient) DiscoverKeepServers() error { this.SetServiceRoots(service_roots) - return nil + return service_roots, nil } type uploadStatus struct {