Skip to content

Commit

Permalink
added defaults
Browse files Browse the repository at this point in the history
  • Loading branch information
rwillard committed Jun 16, 2015
1 parent 3d7e958 commit b6632d8
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions aws.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,10 @@ func getEC2Instances(config map[string]string) (instances Instances) {
config["region"] = "us-east-1"
}

if _, ok := config["output_format"]; !ok {
config["output_format"] = "Cloud: {cloud} \tMatched by: {tag_name} = {tag_value} \tAddr: {addr}"
}

auth := aws.Auth{AccessKey: config["access_key"], SecretKey: config["secret_key"]}

e := ec2.New(auth, aws.Regions[config["region"]])
Expand Down

0 comments on commit b6632d8

Please sign in to comment.