Skip to content

Commit

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

[release-1.9] ✨ govmomi: support vCenter 9
  • Loading branch information
k8s-ci-robot authored Oct 16, 2024
2 parents 6de0247 + d1bbe87 commit 0035f82
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 @@ -311,12 +311,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 0035f82

Please sign in to comment.