Skip to content

Commit

Permalink
fix(amazon/instance): fix npe when applying health to instances (#7893)
Browse files Browse the repository at this point in the history
  • Loading branch information
christopherthielen authored Feb 14, 2020
1 parent 5519388 commit 3ddefaf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/scripts/modules/amazon/src/instance/details/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ export const applyHealthCheckInfoToTargetGroups = (
const group = targetGroups[tg.name] ?? ({} as ITargetGroup);
const useTrafficPort = group.healthCheckPort === 'traffic-port' || isNil(group.healthCheckPort);
const port = useTrafficPort ? group.port : group.healthCheckPort;
tg.healthCheckProtocol = group.healthCheckProtocol.toLowerCase();
tg.healthCheckProtocol = group.healthCheckProtocol?.toLowerCase();
tg.healthCheckPath = `:${port}${group.healthCheckPath}`;
});
}
Expand Down

0 comments on commit 3ddefaf

Please sign in to comment.