Skip to content

Commit

Permalink
Remove usage from dependencies as well. Other dependencies need upstr…
Browse files Browse the repository at this point in the history
…eam merging to completely solve this.
  • Loading branch information
jefferai committed Oct 19, 2015
1 parent 8fe95bd commit c2fd0c2
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 1 deletion.
3 changes: 3 additions & 0 deletions builtin/providers/aws/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ package aws
import (
"fmt"
"log"
"net/http"
"strings"

"github.com/hashicorp/go-multierror"
Expand Down Expand Up @@ -98,6 +99,7 @@ func (c *Config) Client() (interface{}, error) {
Credentials: creds,
Region: aws.String(c.Region),
MaxRetries: aws.Int(c.MaxRetries),
HTTPClient: &http.Client{},
}

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

log.Println("[INFO] Initializing DynamoDB connection")
Expand Down
6 changes: 5 additions & 1 deletion builtin/providers/dme/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,10 @@ package dme

import (
"fmt"
"github.com/soniah/dnsmadeeasy"
"log"
"net/http"

"github.com/soniah/dnsmadeeasy"
)

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

client.HTTP = &http.Client{}

if c.UseSandbox {
client.URL = dnsmadeeasy.SandboxURL
}
Expand Down
2 changes: 2 additions & 0 deletions state/remote/s3.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import (
"fmt"
"io"
"log"
"net/http"
"os"
"strconv"

Expand Down Expand Up @@ -75,6 +76,7 @@ func s3Factory(conf map[string]string) (Client, error) {
awsConfig := &aws.Config{
Credentials: credentialsProvider,
Region: aws.String(regionName),
HTTPClient: &http.Client{},
}
nativeClient := s3.New(awsConfig)

Expand Down

0 comments on commit c2fd0c2

Please sign in to comment.