fix typo that causes serialization to fail when events is non-empty (#11839)

This commit is contained in:
Martin Häger 2017-02-10 12:27:08 +01:00 committed by Paul Stack
parent 5d053754e6
commit f00dee67a4
1 changed files with 1 additions and 1 deletions

View File

@ -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)