provider/aws: Fixes the use of Uppercase chars in ELB Listeners

This commit is contained in:
stack72 2016-02-29 18:04:47 +00:00
parent 9fade4dbf6
commit ffbb59a73e
1 changed files with 1 additions and 1 deletions

View File

@ -49,7 +49,7 @@ func expandListeners(configured []interface{}) ([]*elb.Listener, error) {
if l.SSLCertificateId != nil && *l.SSLCertificateId != "" {
// validate the protocol is correct
for _, p := range []string{"https", "ssl"} {
if (*l.InstanceProtocol == p) || (*l.Protocol == p) {
if (strings.ToLower(*l.InstanceProtocol) == p) || (strings.ToLower(*l.Protocol) == p) {
valid = true
}
}