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

Override all other regions if region is set #624

Merged
merged 1 commit into from
Jan 31, 2018

Conversation

harshavardhana
Copy link
Member

Fixes #623

Copy link
Contributor

@poornas poornas left a comment

Choose a reason for hiding this comment

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

LGTM. Would be good candidate for a Mint test.

@harshavardhana
Copy link
Member Author

LGTM. Would be good candidate for a Mint test.

We cannot add a mint test because Minio server configuration or the choice of remote endpoint is not governed by mint.

@@ -296,6 +296,9 @@ def list_buckets(self):

# default for all requests.
region = 'us-east-1'
# region is set then use the region.
Copy link
Collaborator

Choose a reason for hiding this comment

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

Since we call the same code block twice, we can make it a simple method.

Copy link
Member Author

Choose a reason for hiding this comment

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

There is no reason to make this a method @ebozduman - it will confuse with _get_bucket_location() - i will prefer to keep it as is.

@kannappanr kannappanr merged commit 3aaead4 into minio:master Jan 31, 2018
@harshavardhana harshavardhana deleted the fix-region branch January 31, 2018 21:01
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.

4 participants