mirror of
https://github.com/docker/docs.git
synced 2026-04-12 06:19:22 +07:00
HTTP configuration it done too late
The HTTP transport configuration should be done before the authentication request. Signed-off-by: Guillaume Giamarchi <guillaume.giamarchi@gmail.com>
This commit is contained in:
committed by
Ash Wilson
parent
5f20240340
commit
96224409b8
@@ -411,7 +411,7 @@ func (c *GenericClient) Authenticate(d *Driver) error {
|
||||
AllowReauth: true,
|
||||
}
|
||||
|
||||
provider, err := openstack.AuthenticatedClient(opts)
|
||||
provider, err := openstack.NewClient(opts.IdentityEndpoint)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
@@ -423,6 +423,11 @@ func (c *GenericClient) Authenticate(d *Driver) error {
|
||||
provider.HTTPClient.Transport = transport
|
||||
}
|
||||
|
||||
err = openstack.Authenticate(provider, opts)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
|
||||
c.Provider = provider
|
||||
|
||||
return nil
|
||||
|
||||
Reference in New Issue
Block a user