backend/artifactory: Honor HTTP_PROXY and HTTPS_PROXY environment variables
This commit is contained in:
parent
a7f935c63b
commit
d2bc7c25b9
|
@ -3,6 +3,7 @@ package artifactory
|
||||||
import (
|
import (
|
||||||
"context"
|
"context"
|
||||||
|
|
||||||
|
cleanhttp "github.com/hashicorp/go-cleanhttp"
|
||||||
"github.com/hashicorp/terraform/backend"
|
"github.com/hashicorp/terraform/backend"
|
||||||
"github.com/hashicorp/terraform/helper/schema"
|
"github.com/hashicorp/terraform/helper/schema"
|
||||||
"github.com/hashicorp/terraform/state"
|
"github.com/hashicorp/terraform/state"
|
||||||
|
@ -68,6 +69,7 @@ func (b *Backend) configure(ctx context.Context) error {
|
||||||
BaseURL: url,
|
BaseURL: url,
|
||||||
Username: userName,
|
Username: userName,
|
||||||
Password: password,
|
Password: password,
|
||||||
|
Transport: cleanhttp.DefaultPooledTransport(),
|
||||||
}
|
}
|
||||||
nativeClient := artifactory.NewClient(clientConf)
|
nativeClient := artifactory.NewClient(clientConf)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue