Skip to content

Commit

Permalink
fix(gce): send name in SSL upsert payload (#3665)
Browse files Browse the repository at this point in the history
  • Loading branch information
danielpeach committed May 10, 2017
1 parent f735620 commit 3dbf790
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ class SslLoadBalancer implements IGceLoadBalancer {
public certificate: string;
public backendService: IGceBackendService = { healthCheck: { healthCheckType: 'TCP' } } as IGceBackendService;
public cloudProvider: string;
get name(): string { return this.loadBalancerName; }
public name: string;
constructor (public region = 'global') {}
}

Expand Down Expand Up @@ -190,7 +190,8 @@ class SslLoadBalancerCtrl extends CommonGceLoadBalancerCtrl implements ng.ICompo
public submit (): void {
const descriptor = this.isNew ? 'Create' : 'Update';
const toSubmitLoadBalancer = _.cloneDeep(this.loadBalancer) as ISslLoadBalancerUpsertDescription;
toSubmitLoadBalancer.backendService.name = toSubmitLoadBalancer.name;
toSubmitLoadBalancer.name = toSubmitLoadBalancer.loadBalancerName;
toSubmitLoadBalancer.backendService.name = toSubmitLoadBalancer.loadBalancerName;
toSubmitLoadBalancer.cloudProvider = 'gce';
delete toSubmitLoadBalancer['instances'];

Expand Down

0 comments on commit 3dbf790

Please sign in to comment.