add lambda_arn to lambda func association hash

This commit is contained in:
Tim Gossett 2017-01-05 13:05:53 -05:00
parent 39520ab568
commit fa7eecf508
No known key found for this signature in database
GPG Key ID: 6708169C08D3CCF0
1 changed files with 2 additions and 1 deletions

View File

@ -441,7 +441,8 @@ func flattenLambdaFunctionAssociation(lfa *cloudfront.LambdaFunctionAssociation)
func lambdaFunctionAssociationHash(v interface{}) int {
var buf bytes.Buffer
m := v.(map[string]interface{})
buf.WriteString(m["event_type"].(string))
buf.WriteString(fmt.Sprintf("%s-", m["event_type"].(string)))
buf.WriteString(fmt.Sprintf("%s", m["lambda_arn"].(string)))
return hashcode.String(buf.String())
}