fix go vet fail

This commit is contained in:
r_takaishi 2017-05-24 17:57:21 +09:00
parent db58854b0b
commit 4fc0616bc9
1 changed files with 2 additions and 2 deletions

View File

@ -126,9 +126,9 @@ func (c *AccessConfig) Prepare(ctx *interpolate.Context) []error {
tls_config.Certificates = []tls.Certificate{cert}
}
var transport http.Transport = *http.DefaultTransport.(*http.Transport)
transport := http.DefaultTransport.(*http.Transport)
transport.TLSClientConfig = tls_config
client.HTTPClient.Transport = &transport
client.HTTPClient.Transport = transport
// Auth
err = openstack.Authenticate(client, ao)