Skip to content

Commit

Permalink
fix typo that causes serialization to fail when events is non-empty (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
Martin Häger authored and stack72 committed Feb 10, 2017
1 parent 5d05375 commit f00dee6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion builtin/providers/aws/resource_aws_codecommit_trigger.go
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ func expandAwsCodeCommitTriggers(configured []interface{}) []*codecommit.Reposit
Name: aws.String(data["name"].(string)),
}

branches := make([]*string, len(data["events"].([]interface{})))
branches := make([]*string, len(data["branches"].([]interface{})))
for i, vv := range data["branches"].([]interface{}) {
str := vv.(string)
branches[i] = aws.String(str)
Expand Down

0 comments on commit f00dee6

Please sign in to comment.