Skip to content

Commit 4aafde8

Browse files
committed
Fix the issue where domain.path was not populated correctly
1 parent adad869 commit 4aafde8

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

pkg/cloud/user_credentials.go

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -72,10 +72,8 @@ func (c *client) ResolveDomain(domain *Domain) error {
7272
// Ensure the path begins with ROOT.
7373
if !strings.EqualFold(tokens[0], rootDomain) {
7474
tokens = append([]string{rootDomain}, tokens...)
75-
} else {
76-
tokens[0] = rootDomain
77-
domain.Path = strings.Join(tokens, domainDelimiter)
7875
}
76+
domain.Path = strings.Join(tokens, domainDelimiter)
7977
}
8078

8179
// Set present search/list parameters.

0 commit comments

Comments
 (0)