mirror of https://github.com/docker/docs.git
Merge pull request #1378 from nathanleclaire/amazonec2_extra_debug
Show requests made to AWS API in debug mode
This commit is contained in:
commit
ff4650b9ed
|
@ -9,6 +9,8 @@ import (
|
|||
"net/url"
|
||||
"strconv"
|
||||
|
||||
"github.com/docker/machine/log"
|
||||
"github.com/docker/machine/utils"
|
||||
awsauth "github.com/smartystreets/go-aws-auth"
|
||||
)
|
||||
|
||||
|
@ -148,6 +150,8 @@ func NewEC2(auth Auth, region string) *EC2 {
|
|||
|
||||
func (e *EC2) awsApiCall(v url.Values) (*http.Response, error) {
|
||||
v.Set("Version", "2014-06-15")
|
||||
log.Debug("Making AWS API call with values:")
|
||||
utils.DumpVal(v)
|
||||
client := &http.Client{}
|
||||
finalEndpoint := fmt.Sprintf("%s?%s", e.Endpoint, v.Encode())
|
||||
req, err := http.NewRequest("GET", finalEndpoint, nil)
|
||||
|
|
Loading…
Reference in New Issue