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:
Robert Roland 2016-11-03 09:12:28 -07:00
parent 909e19b88e
commit 16226c0e18

View File

@ -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
}