Skip to content

Commit

Permalink
Merge pull request #3227 from k8s-infra-cherrypick-robot/cherry-pick-…
Browse files Browse the repository at this point in the history
…3225-to-release-1.11

[release-1.11] ✨ govmomi: support vCenter 9
  • Loading branch information
k8s-ci-robot authored Oct 16, 2024
2 parents cab2457 + 1492627 commit b311ee8
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 b311ee8

Please sign in to comment.