-
Notifications
You must be signed in to change notification settings - Fork 911
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
api: HardwareVersion.IsSupported vs IsValid
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 * HardwareVersion.IsValid returns true if the specified value matches a VMX version format. * HardwareVersion.IsSupported behaves how IsValid used to behave.
- Loading branch information
Showing
2 changed files
with
158 additions
and
72 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters