Lokasi ngalangkungan proxy:   [ UP ]  
[Ngawartoskeun bug]   [Panyetelan cookie]                
Skip to content

Commit b0ceffc

Browse files
committed
Remove usage from dependencies as well. Other dependencies need upstream merging to completely solve this.
1 parent 3c0ed11 commit b0ceffc

3 files changed

Lines changed: 10 additions & 1 deletion

File tree

builtin/providers/aws/config.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ package aws
33
import (
44
"fmt"
55
"log"
6+
"net/http"
67
"strings"
78

89
"github.com/hashicorp/go-multierror"
@@ -98,6 +99,7 @@ func (c *Config) Client() (interface{}, error) {
9899
Credentials: creds,
99100
Region: aws.String(c.Region),
100101
MaxRetries: aws.Int(c.MaxRetries),
102+
HTTPClient: &http.Client{},
101103
}
102104

103105
log.Println("[INFO] Initializing IAM Connection")
@@ -123,6 +125,7 @@ func (c *Config) Client() (interface{}, error) {
123125
Credentials: creds,
124126
Region: aws.String("us-east-1"),
125127
MaxRetries: aws.Int(c.MaxRetries),
128+
HTTPClient: &http.Client{},
126129
}
127130

128131
log.Println("[INFO] Initializing DynamoDB connection")

builtin/providers/dme/config.go

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,10 @@ package dme
22

33
import (
44
"fmt"
5-
"github.com/soniah/dnsmadeeasy"
65
"log"
6+
"net/http"
7+
8+
"github.com/soniah/dnsmadeeasy"
79
)
810

911
// Config contains DNSMadeEasy provider settings
@@ -20,6 +22,8 @@ func (c *Config) Client() (*dnsmadeeasy.Client, error) {
2022
return nil, fmt.Errorf("Error setting up client: %s", err)
2123
}
2224

25+
client.HTTP = &http.Client{}
26+
2327
if c.UseSandbox {
2428
client.URL = dnsmadeeasy.SandboxURL
2529
}

state/remote/s3.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ import (
55
"fmt"
66
"io"
77
"log"
8+
"net/http"
89
"os"
910
"strconv"
1011

@@ -75,6 +76,7 @@ func s3Factory(conf map[string]string) (Client, error) {
7576
awsConfig := &aws.Config{
7677
Credentials: credentialsProvider,
7778
Region: aws.String(regionName),
79+
HTTPClient: &http.Client{},
7880
}
7981
nativeClient := s3.New(awsConfig)
8082

0 commit comments

Comments
 (0)