From e815953c020869db5332535e13f05840fbd5a9d3 Mon Sep 17 00:00:00 2001 From: Christopher Grim Date: Wed, 20 Aug 2014 09:45:22 -0400 Subject: [PATCH] `go vet` fixes This fixes the following complaints from `go vet`: $ go vet aws.go:24: launchpad.net/goamz/aws.Auth composite literal uses unkeyed fields exit status 1 --- aws.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/aws.go b/aws.go index a80ae5f..bc65cf6 100644 --- a/aws.go +++ b/aws.go @@ -21,7 +21,7 @@ func getEC2Instances(config map[string]string) (instances Instances) { config["region"] = "us-east-1" } - auth := aws.Auth{config["access_key"], config["secret_key"]} + auth := aws.Auth{AccessKey: config["access_key"], SecretKey: config["secret_key"]} e := ec2.New(auth, aws.Regions[config["region"]]) resp, err := e.Instances(nil, nil)