fix typo that causes serialization to fail when events is non-empty (#11839)
This commit is contained in:
parent
5d053754e6
commit
f00dee67a4
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue