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
[LIBCLOUD-954] ec2: Allow cn-north-1 even without pricing #1127
Conversation
Thanks @pquentin, a nice trade-off :-) Maybe this should be clearly stated in the docs, since in practice there's at least one api method (I think) not supported for the region. |
I think this is good :) |
bd28b40
to
65fb59b
Compare
@fjros Thanks. I tried a better approach: setting price to None when it's not available as with cn-north-1. Also improved the docs. Please tell me what you think. I highly appreciate your timely feedback! |
Codecov Report
@@ Coverage Diff @@
## trunk #1127 +/- ##
==========================================
+ Coverage 85.45% 85.45% +<.01%
==========================================
Files 346 346
Lines 66272 66278 +6
Branches 5899 5900 +1
==========================================
+ Hits 56631 56637 +6
Misses 7239 7239
Partials 2402 2402
Continue to review full report at Codecov.
|
@pquentin Great!! As far as I'm concerned, this fixes the issue. Just a minor note... Maybe |
Ah, yes, that would be better! I'll do that. |
Thinking a bit more about it, that would affect other drivers. I would not want to return None silently in those cases because we would not be alerted of an issue in tests. The change as it is currently only affects EC2. |
Merged in trunk. @fjros Please fell free to open a new PR or JIRA issue if you think of a better way. Thanks again. |
ec2: Allow cn-north-1 even without pricing
Description
See https://issues.apache.org/jira/browse/LIBCLOUD-954 and 1e1d77f
@fjros and @duanshiqiang, what do you think?
Status
Checklist (tick everything that applies)