Skip to content

Commit 3d1f616

Browse files
authored
Merge pull request #3225 from chrischdi/pr-govmomi-vcenter-version
✨ govmomi: support vCenter 9
2 parents f640224 + 4cd2188 commit 3d1f616

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)