Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[check-elb-health-sdk.rb] Return many elb healths instead of the one asked #300

Open
laurent-rosselet opened this issue Oct 26, 2018 · 0 comments

Comments

@laurent-rosselet
Copy link

check-elb-health-sdk.rb is suppose to return health of the elb passed in parameter using '--elb-name ELB_NAME'.

But if you have 2 elbs called "maxi" and "maximum" and want to check the 2nd, the function will return both.

bash-4.3# check-elb-health-sdk.rb --aws-region eu-west-1 --elb-name maximum --verbose
ELBHealth OK: eu-west-1: maximum => healthy. maxi => healthy. 

The error comes from this line :

95    @elbs.select! { |elb| config[:elb_name].include? elb.load_balancer_name } if config[:elb_name]

It takes all existing elb where the name is include in ELB_NAME

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant