vmware / govmomi

Go library for the VMware vSphere API
Apache License 2.0
2.26k stars 896 forks source link

api: HardwareVersion.IsSupported vs IsValid #3446

Closed akutz closed 1 month ago

akutz commented 1 month ago

Description

This patch modifies the behavior of the HardwareVersion.IsValid function so that it returns true if the specified version can be parsed.

There is a new function, HardwareVersion.IsSupported, that acts more like the old behavior of IsValid. IsSupported only returns true when the version is known to GoVmomi.

BREAKING: HardwareVersion.IsValid is more relaxed, consider IsSupported

Closes: NA

Type of change

Please mark options that are relevant:

How Has This Been Tested?

Checklist:

sreyasn commented 1 month ago

Thanks @akutz