-
Notifications
You must be signed in to change notification settings - Fork 249
CatalogService does not initialize region if regionless = true #344
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
CatalogService does not initialize region if regionless = true #344
Conversation
@tmilos For your PR, we always merge to the What version of PHP are you using? I'm using 5.5.11 and can't reproduce the error you're experiencing. All that happens on that line is that it assigns the |
I'm on 5.4.19. I'm not sure how it can work at yours. It's documented on http://php.net/manual/en/language.operators.logical.php as short-circuit // foo() will never get called as those operators are short-circuit
$a = (false && foo()); |
I forgot to mention. I noticed this on v1.9.2. Haven't tried master, but looked at the code and it seems the same. |
@tmilos Since the DNS service is regionless, the first operator should always fail - meaning that the |
They launched a LON endpoint last week Sent from my iPhone On Apr 28, 2014, at 8:10 AM, "Jamie Hannaford" <notifications@github.commailto:notifications@github.com> wrote: @tmiloshttps://github.com/tmilos Since the DNS service is regionless, the first operator should always fail - meaning that the $region assignment should never happen. What I'm struggling to understand is why do you need to set the $region property for the DNS service? — |
CatalogService does not initialize region if regionless = true
@tmilos Sorry for not realizing this. Although I tried authenticating against the |
Yes, it’s still a global service, but they’re providing other endpoints for, presumably, better performance. On Apr 28, 2014, at 9:01 AM, Jamie Hannaford <notifications@github.commailto:notifications@github.com> wrote: @tmiloshttps://github.com/tmilos Sorry for not realizing this. Although I tried authenticating against the LON region, it doesn't throw an exception if you provide US credentials. Only if you provide UK credentials. Thanks again for pointing this out. — |
Regionless services, like DNS does not get initialized with region and fail on
Rackspace::dnsService
ServiceBuilder::factory
CatalogService::__construct
CatalogService::findEndpoint
CatalogItem::getEndpointFromRegion
line 139 with message
This service [cloudDNS] does not have access to the [] endpoint.