mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-21 01:26:28 +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)
|
m := session.NewManager(vs.client.Client)
|
||||||
// retrieve client's current session
|
// retrieve client's current session
|
||||||
u, err := m.UserSession(ctx)
|
u, err := m.UserSession(ctx)
|
||||||
if err == nil && u == nil {
|
if err == nil && u != nil {
|
||||||
// current session is valid
|
// current session is valid
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user