Skip to content

Commit

Permalink
go vet fixes
Browse files Browse the repository at this point in the history
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
  • Loading branch information
bookest committed Aug 20, 2014
1 parent d9367e5 commit e815953
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion aws.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit e815953

Please sign in to comment.