Skip to content

Commit 363b347

Browse files
chrischdik8s-infra-cherrypick-robot
authored and
k8s-infra-cherrypick-robot
committed
govmomi: support vCenter 9
1 parent 5a7034c commit 363b347

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)