Skip to content

Commit b023b63

Browse files
author
Kai Hendry
committed
Slight simplification
1 parent eec2d9e commit b023b63

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

ecs-check/list-loadbalancers

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,7 @@ do
2020
if echo $target | grep bugzilla
2121
then
2222
stickiness=$(aws --profile uneet-$stage elbv2 describe-target-group-attributes --target-group-arn $target |
23-
jq -r '.Attributes[]|select(.Key=="stickiness.enabled")|.Value')
24-
#jq -r '.Attributes|.[]|select(.Key=="stickiness.enabled")|.Value')
23+
jq -r '.Attributes| from_entries."stickiness.enabled"')
2524
if test $stickiness != "true"
2625
then
2726
echo ""

0 commit comments

Comments
 (0)