Fix bug where listener certificate was not being saved correctly when

creating an elb. Added test to cover that case.

Paired with @jszwedko
This commit is contained in:
Kevin Donnelly 2015-05-20 19:42:58 +00:00
commit 3c75e0ef2e
2 changed files with 19 additions and 1 deletions

View file

@ -31,7 +31,7 @@ class ELBResponse(BaseResponse):
break
lb_port = self.querystring['Listeners.member.{0}.LoadBalancerPort'.format(port_index)][0]
instance_port = self.querystring['Listeners.member.{0}.InstancePort'.format(port_index)][0]
ssl_certificate_id = self.querystring.get('Listeners.member.{0}.SSLCertificateId'.format(port_index)[0], None)
ssl_certificate_id = self.querystring.get('Listeners.member.{0}.SSLCertificateId'.format(port_index), [None])[0]
ports.append([protocol, lb_port, instance_port, ssl_certificate_id])
port_index += 1