Merge branch '15061-fed-migrate' refs #15061
[arvados.git] / sdk / go / arvados / client.go
index 37ff4d818a2ee33d1930a4842927f6a4994e33b7..cbc2ca72f035f150fce46613fa015d299a9bbd7b 100644 (file)
@@ -79,7 +79,7 @@ func NewClientFromConfig(cluster *Cluster) (*Client, error) {
                return nil, fmt.Errorf("no host in config Services.Controller.ExternalURL: %v", ctrlURL)
        }
        return &Client{
-               APIHost:  fmt.Sprintf("%v", ctrlURL),
+               APIHost:  ctrlURL.Host,
                Insecure: cluster.TLS.Insecure,
        }, nil
 }