Skip to content

Commit

Permalink
Validate connections
Browse files Browse the repository at this point in the history
Signed-off-by: abarreiro <abarreiro@vmware.com>
  • Loading branch information
adambarreiro committed May 9, 2024
1 parent a4a8a34 commit d4ef6fc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion govcd/org_oidc.go
Expand Up @@ -275,7 +275,7 @@ func oidcValidateConnection(client *Client, endpoint string) error {
}

if result.TargetProbe == nil || !result.TargetProbe.CanConnect || (isSecure && !result.TargetProbe.SSLHandshake) {
return fmt.Errorf("could not establish a connection to %s", uri.String())
return fmt.Errorf("could not establish a connection to %s://%s", uri.Scheme, uri.Host)
}
return nil
}
Expand Down

0 comments on commit d4ef6fc

Please sign in to comment.