Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

helper/viapi: Fix version comparison logic #272

Merged
merged 1 commit into from
Dec 5, 2017
Merged

Conversation

vancluever
Copy link
Contributor

Version comparison logic was not sound across minor and patch versions.
The new logic just bit-shifts major and minor so that a nice clean
comparable integer. I'd imagine this will be fine, as I've never seen
VMware put out any sort of release with a version anywhere close to the
8-bit space we give each version particle now.

Fixes #265.

Version comparison logic was not sound across minor and patch versions.
The new logic just bit-shifts major and minor so that a nice clean
comparable integer. I'd imagine this will be fine, as I've never seen
VMware put out any sort of release with a version anywhere close to the
8-bit space we give each version particle now.

Fixes #265.
@vancluever vancluever changed the title viapi: Fix version comparison logic helper/viapi: Fix version comparison logic Dec 4, 2017
Copy link
Member

@mbfrahry mbfrahry left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@vancluever
Copy link
Contributor Author

Thanks @mbfrahry! Merging now

@vancluever vancluever merged commit c5e8891 into master Dec 5, 2017
@vancluever vancluever deleted the b-versioncmp-fixes branch December 5, 2017 13:42
@ghost ghost locked and limited conversation to collaborators Apr 19, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Create VM fail on ESXi 5.5 standalone
2 participants