Skip to content

Commit

Permalink
govmomi: support vCenter 9
Browse files Browse the repository at this point in the history
  • Loading branch information
chrischdi committed Oct 16, 2024
1 parent f640224 commit 4cd2188
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions pkg/session/session.go
Original file line number Diff line number Diff line change
Expand Up @@ -271,12 +271,10 @@ func (s *Session) GetVersion() (infrav1.VCenterVersion, error) {
return "", err
}

switch version.Major {
case 6, 7, 8:
if version.Major >= 6 {
return infrav1.NewVCenterVersion(svcVersion), nil
default:
return "", unidentifiedVCenterVersion{version: svcVersion}
}
return "", unidentifiedVCenterVersion{version: svcVersion}
}

// Clear is meant to destroy all the cached sessions.
Expand Down

0 comments on commit 4cd2188

Please sign in to comment.