Skip to content

Commit

Permalink
fix(netflix): Fixed ITT stage automatic VIP override value when oldVi…
Browse files Browse the repository at this point in the history
…p is a comma separated list
  • Loading branch information
jrsquared committed Mar 22, 2017
1 parent 4ba0154 commit c779528
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -199,10 +199,12 @@ class IsolatedTestingTargetStageCtrl {
return command;
}

private generateNewVip(oldVip: string, details: string) {
private generateNewVip(oldVip: string, details: string): string {
if (!oldVip) { return undefined; }

let vipParts = oldVip.split(':');
// the oldVip can actually be a comma separated list of vips, so just grab the first one in the list to mimic
const vips = oldVip.split(',');
let vipParts = vips[0].split(':');

// Check if the last part is a port
const lastPart = vipParts.pop();
Expand Down

0 comments on commit c779528

Please sign in to comment.