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

Fixing cn-north-1 endpoint for IAM #405

Merged
merged 1 commit into from Nov 19, 2014
Merged

Fixing cn-north-1 endpoint for IAM #405

merged 1 commit into from Nov 19, 2014

Conversation

mtdowling
Copy link
Member

No description provided.

@@ -377,7 +377,7 @@ protected function updateConfigFromDescription(Collection $config)
throw new InvalidArgumentException(
'A region is required when using ' . $description->getData('serviceFullName')
);
} elseif ($global && (!$region || $description->getData('namespace') !== 'S3')) {
} elseif ($global && !$region) {
Copy link
Member Author

Choose a reason for hiding this comment

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

The $description->getData('namespace') !== 'S3' part of this if statement was incorrect and caused all endpoints other than S3 with the "globalEndpoint" flag to always go to the us-east-1 region.

@jeremeamia
Copy link
Contributor

👍

mtdowling added a commit that referenced this pull request Nov 19, 2014
Fixing cn-north-1 endpoint for IAM
@mtdowling mtdowling merged commit 0fc1d60 into master Nov 19, 2014
@mtdowling mtdowling deleted the cn-north-1-fix branch November 25, 2014 01:06
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.

None yet

2 participants