mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-19 08:40:42 +00:00
Bad conditional in vSphereLogin function
With this conditional being == instead of !=, a login would never actually be attempted by this provider, and disk attachments would fail.
This commit is contained in:
parent
909e19b88e
commit
16226c0e18
@ -360,7 +360,7 @@ func vSphereLogin(vs *VSphere, ctx context.Context) error {
|
||||
m := session.NewManager(vs.client.Client)
|
||||
// retrieve client's current session
|
||||
u, err := m.UserSession(ctx)
|
||||
if err == nil && u == nil {
|
||||
if err == nil && u != nil {
|
||||
// current session is valid
|
||||
return nil
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user