From d2bc7c25b93365a79dff6f045e07ba3d28d76386 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Joaqu=C3=ADn=20Fern=C3=A1ndez=20Campo?= Date: Wed, 6 Nov 2019 23:18:33 +0100 Subject: [PATCH] backend/artifactory: Honor HTTP_PROXY and HTTPS_PROXY environment variables --- backend/remote-state/artifactory/backend.go | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/backend/remote-state/artifactory/backend.go b/backend/remote-state/artifactory/backend.go index d085f21b5..775584a51 100644 --- a/backend/remote-state/artifactory/backend.go +++ b/backend/remote-state/artifactory/backend.go @@ -3,6 +3,7 @@ package artifactory import ( "context" + cleanhttp "github.com/hashicorp/go-cleanhttp" "github.com/hashicorp/terraform/backend" "github.com/hashicorp/terraform/helper/schema" "github.com/hashicorp/terraform/state" @@ -65,9 +66,10 @@ func (b *Backend) configure(ctx context.Context) error { subpath := data.Get("subpath").(string) clientConf := &artifactory.ClientConfig{ - BaseURL: url, - Username: userName, - Password: password, + BaseURL: url, + Username: userName, + Password: password, + Transport: cleanhttp.DefaultPooledTransport(), } nativeClient := artifactory.NewClient(clientConf)