Skip to content

Commit a3d29f8

Browse files
authored
Merge pull request #3228 from k8s-infra-cherrypick-robot/cherry-pick-3225-to-release-1.10
[release-1.10] ✨ govmomi: support vCenter 9
2 parents 5a7034c + 363b347 commit a3d29f8

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

pkg/session/session.go

+2-4
Original file line numberDiff line numberDiff line change
@@ -311,12 +311,10 @@ func (s *Session) GetVersion() (infrav1.VCenterVersion, error) {
311311
return "", err
312312
}
313313

314-
switch version.Major {
315-
case 6, 7, 8:
314+
if version.Major >= 6 {
316315
return infrav1.NewVCenterVersion(svcVersion), nil
317-
default:
318-
return "", unidentifiedVCenterVersion{version: svcVersion}
319316
}
317+
return "", unidentifiedVCenterVersion{version: svcVersion}
320318
}
321319

322320
// Clear is meant to destroy all the cached sessions.

0 commit comments

Comments
 (0)