Skip to content

Commit

Permalink
lookup.EndpointURL should only save thumbprints for endpoints outside…
Browse files Browse the repository at this point in the history
… of vCenter
  • Loading branch information
dougm committed Jan 27, 2023
1 parent c27ab6b commit 205cbcd
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lookup/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,9 @@ func EndpointURL(ctx context.Context, c *vim25.Client, path string, filter *type
path = endpoint.Url

if u, err := url.Parse(path); err == nil {
if c.Thumbprint(u.Host) == "" {
// Set thumbprint only for endpoints on hosts outside this vCenter.
// Platform Services may live on multiple hosts.
if c.URL().Host != u.Host && c.Thumbprint(u.Host) == "" {
c.SetThumbprint(u.Host, endpointThumbprint(endpoint))
}
}
Expand Down

0 comments on commit 205cbcd

Please sign in to comment.