Skip to content

Commit

Permalink
fix(pipeline): Fix target impedance validator for clone server group (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
jkschneider authored and spinnakerbot committed Mar 29, 2019
1 parent b37e206 commit 743718d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ export class CfTargetImpedanceValidator implements IStageOrTriggerValidator {
});
} else if (
toTest.type === 'cloneServerGroup' &&
toTest.targetCluster === stage.cluster &&
NameUtils.getClusterName(toTest.application, toTest.stack, toTest.freeFormDetails) === stage.cluster &&
toTest.region === region
) {
regionFound = true;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,8 @@ export class TargetImpedanceValidator implements IStageOrTriggerValidator {
});
} else if (
toTest.type === 'cloneServerGroup' &&
toTest['targetCluster'] === stage['cluster'] &&
NameUtils.getClusterName(toTest['application'], toTest['stack'], toTest['freeFormDetails']) ===
stage['cluster'] &&
toTest['region'] === region
) {
regionFound = true;
Expand Down

0 comments on commit 743718d

Please sign in to comment.