We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent efc8423 commit c5c42b7Copy full SHA for c5c42b7
pkg/cloud/user_credentials.go
@@ -70,11 +70,12 @@ func (c *client) ResolveDomain(domain *Domain) error {
70
domain.Name = tokens[len(tokens)-1]
71
}
72
// Ensure the path begins with ROOT.
73
- if strings.EqualFold(tokens[0], rootDomain) {
+ if !strings.EqualFold(tokens[0], rootDomain) {
74
tokens = append([]string{rootDomain}, tokens...)
75
} else {
76
- domain.Path = rootDomain + domainDelimiter + strings.Join(tokens, domainDelimiter)
+ tokens[0] = rootDomain
77
78
+ domain.Path = strings.Join(tokens, domainDelimiter)
79
80
81
// Set present search/list parameters.
0 commit comments