Skip to content

Commit

Permalink
use upper camel on titus step policy editing
Browse files Browse the repository at this point in the history
  • Loading branch information
anotherchrisberry authored and tomaslin committed Mar 16, 2018
1 parent 0a332ee commit 5c4fa76
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions serverGroup/details/serverGroupDetails.titus.controller.js
Original file line number Diff line number Diff line change
Expand Up @@ -124,6 +124,13 @@ module.exports = angular.module('spinnaker.serverGroup.details.titus.controller'
policy.policyType = policyType;
policy.alarms = [alarm];
policy.id = p.id;
if (policy.stepAdjustments) {
policy.stepAdjustments.forEach(step => {
// gRPC currently returns these values in upper camel case
step.metricIntervalUpperBound = _.get(step, 'metricIntervalUpperBound', step.MetricIntervalUpperBound);
step.metricIntervalLowerBound = _.get(step, 'metricIntervalLowerBound', step.MetricIntervalLowerBound);
});
}
return policy;
} else {
policy.id = p.id;
Expand Down

0 comments on commit 5c4fa76

Please sign in to comment.