Skip to content

Commit

Permalink
Merge pull request #3225 from chrischdi/pr-govmomi-vcenter-version
Browse files Browse the repository at this point in the history
✨ govmomi: support vCenter 9
  • Loading branch information
k8s-ci-robot authored Oct 16, 2024
2 parents f640224 + 4cd2188 commit 3d1f616
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 3d1f616

Please sign in to comment.