Skip to content

Commit

Permalink
hashicorpGH-6342 - Found that the actual AWS call requires the attrib…
Browse files Browse the repository at this point in the history
…utes to be present but empty instead of ommitted
  • Loading branch information
jrnt30 committed Apr 27, 2016
1 parent 890623a commit 60bef88
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -721,10 +721,13 @@ func expandCustomErrorResponse(m map[string]interface{}) *cloudfront.CustomError
}
if v, ok := m["response_code"]; ok && v.(int) != 0 {
er.ResponseCode = aws.String(strconv.Itoa(v.(int)))
} else {
er.ResponseCode = aws.String("")
}
if v, ok := m["response_page_path"]; ok && v.(string) != "" {
if v, ok := m["response_page_path"]; ok {
er.ResponsePagePath = aws.String(v.(string))
}

return &er
}

Expand Down

0 comments on commit 60bef88

Please sign in to comment.