Skip to content

Commit 4cd2188

Browse files
committed
govmomi: support vCenter 9
1 parent f640224 commit 4cd2188

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

pkg/session/session.go

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -271,12 +271,10 @@ func (s *Session) GetVersion() (infrav1.VCenterVersion, error) {
271271
return "", err
272272
}
273273

274-
switch version.Major {
275-
case 6, 7, 8:
274+
if version.Major >= 6 {
276275
return infrav1.NewVCenterVersion(svcVersion), nil
277-
default:
278-
return "", unidentifiedVCenterVersion{version: svcVersion}
279276
}
277+
return "", unidentifiedVCenterVersion{version: svcVersion}
280278
}
281279

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

0 commit comments

Comments
 (0)