Skip to content

Commit

Permalink
fix(amazon/loadBalancers): Remove cert and ssl policies when submitti…
Browse files Browse the repository at this point in the history
…ng http listener (#5011)
  • Loading branch information
Justin Reynolds committed Mar 16, 2018
1 parent 99bf884 commit 1852a0b
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,10 @@ export class CreateApplicationLoadBalancer extends React.Component<ICreateApplic
private formatListeners(command: IAmazonApplicationLoadBalancerUpsertCommand): IPromise<void> {
return ReactInjector.accountService.getAccountDetails(command.credentials).then((account) => {
command.listeners.forEach((listener) => {
if (listener.protocol === 'HTTP') {
delete listener.sslPolicy;
listener.certificates = [];
}
listener.certificates.forEach((certificate) => {
certificate.certificateArn = this.certificateIdAsARN(account.accountId, certificate.name,
command.region, certificate.type || this.certificateTypes[0]);
Expand Down

0 comments on commit 1852a0b

Please sign in to comment.