Skip to content

Commit

Permalink
govmomi: support vCenter 9
Browse files Browse the repository at this point in the history
  • Loading branch information
chrischdi authored and k8s-infra-cherrypick-robot committed Oct 16, 2024
1 parent 6de0247 commit d1bbe87
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 d1bbe87

Please sign in to comment.