-
Notifications
You must be signed in to change notification settings - Fork 188
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
Fix calculation of VPC Network Interfaces limit #394
Fix calculation of VPC Network Interfaces limit #394
Conversation
looks like unit test needs fixing |
Thanks for the contribution! I wasn't aware of that bug in the NI limit calculation, and nobody else has noticed this yet either! It appears this was introduced in #379 and released in 6.1.0 about a month ago. I'm going to be rather busy the next few days, so I might be able to get this fixed up and released while I'm working on other things, or else it might not be released until the weekend or early next week. Yes, the unit test is definitely causing a build failure, because they're testing the previous logic. It should only take 3 changes to fix them. The unit test in question has a sample API response with "400" as the max-instances limit returned by the EC2 API, and expects the Network interfaces per Region limit to also be 400. Since it appears that the limit should really be multiplied by five but that was never done in the code, we'll want to expect the resulting Network interfaces per Region limit to be 2000 instead of 400... so the unit tests should be fixed by just changing the Thanks, PS - Tim, this bug happened to be pretty obvious when looking at the changes in this PR. In the future, though, it would be helpful if you provided a more detailed overview of the problem for PRs that don't already have a matching issue containing all of the details requested in the issue template. ( cc @nadlerjessie on this PR, as I assume her employer is also using this code ) |
Codecov Report
@@ Coverage Diff @@
## develop #394 +/- ##
======================================
Coverage 100% 100%
======================================
Files 30 30
Lines 2274 2274
Branches 338 338
======================================
Hits 2274 2274
Continue to review full report at Codecov.
|
I'm going to merge this now and try to get a release out today. I'll update when it's live on PyPI. Thanks so much for the contribution, @TimGebert !! |
Thanks @jantman for making it easy to get this in so easily, and constantly supporting the repo :) |
Summary
Fixes calculation for VPC Network Interface limit.
Contributor License Agreement
By submitting this work for inclusion in awslimitchecker, I agree to the following terms:
is being made under the same license as the awslimitchecker project (the Affero GPL v3,
or any subsequent version of that license if adopted by awslimitchecker).
this pull request grants a perpetual, global, unlimited license for it to be used and distributed
under the terms of awslimitchecker's license.