Skip to content

Commit

Permalink
Titus: fix health check format for target groups
Browse files Browse the repository at this point in the history
  • Loading branch information
tomaslin committed Mar 26, 2018
1 parent 433d5c2 commit 0991433
Showing 1 changed file with 1 addition and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -154,15 +154,7 @@ class AwsLookupUtil {

healths.findAll { it.attributes.type == 'TargetGroup' && it.attributes.targetGroups }.each { healthEntry ->
def instanceId = healthKeysToInstance.get(healthEntry.id)
def interestingHealth = healthEntry.attributes.targetGroups
instances[instanceId].health.addAll(interestingHealth.collect {
[
targetGroupName: it.targetGroupName,
state: it.state,
reasonCode: it.reason,
description: it.description
]
})
instances[instanceId].health.addAll(healthEntry.attributes)
}
}

Expand Down

0 comments on commit 0991433

Please sign in to comment.