-
Notifications
You must be signed in to change notification settings - Fork 5.6k
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
Fixed minor issue in datacenter name lookup code #8505
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice. As I cannot test, I take your word on it.
@@ -437,7 +437,7 @@ func (e *Endpoint) discover(ctx context.Context) error { | |||
} | |||
|
|||
// Fill in datacenter names where available (no need to do it for Datacenters) | |||
if res.name != "Datacenter" { | |||
if res.name != "datacenter" { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is there any value in making this comparison case insensitive, or is it always capitalized?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It’s always capitalized. It’s just a key used internally in the code.
@prydin We'd like to merge this for the 1.17 release tomorrow. Could you respond to Steven's question about case sensitivity? |
Required for all PRs:
Due to a spelling error in an if-statement, the code to resolve names of datacenters was called even when the name was known. This also caused a somewhat misleading debug message to be shown.