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

use aws sdk to validate regions #2687

Merged
merged 1 commit into from
Aug 20, 2018

Conversation

davidswu
Copy link
Contributor

closes #2619

Signed-off-by: David Wu [email protected]

Copy link
Contributor

@manishtomar manishtomar left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM after lint fix

@dmp42
Copy link
Contributor

dmp42 commented Aug 20, 2018

LGTM

@caervs
Copy link
Contributor

caervs commented Aug 20, 2018

LGTM

} {
validRegions[region] = struct{}{}
resolver := endpoints.DefaultResolver()
partitions := resolver.(endpoints.EnumPartitions).Partitions()
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I see there is also a endpoints.DefaultPartitions(), would this always return the same list?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes let's use that instead

@codecov
Copy link

codecov bot commented Aug 20, 2018

Codecov Report

Merging #2687 into master will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@           Coverage Diff           @@
##           master    #2687   +/-   ##
=======================================
  Coverage   59.63%   59.63%           
=======================================
  Files          99       99           
  Lines        7893     7893           
=======================================
  Hits         4707     4707           
  Misses       2568     2568           
  Partials      618      618
Flag Coverage Δ
#linux 59.63% <ø> (ø) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 9bf62ca...0b0d470. Read the comment docs.

Copy link
Collaborator

@dmcgowan dmcgowan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@dmp42
Copy link
Contributor

dmp42 commented Aug 20, 2018

Fixes #2619

@dmcgowan dmcgowan merged commit 633401c into distribution:master Aug 20, 2018
@davidswu davidswu deleted the remove-region-validation branch August 20, 2018 18:15
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

Successfully merging this pull request may close these issues.

Tie region validation to the SDK
5 participants