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

fix(inputs.vpshere): compare versions as a string #13557

Merged
merged 1 commit into from
Jul 6, 2023

Conversation

powersj
Copy link
Contributor

@powersj powersj commented Jul 5, 2023

Not all versions from Vsphere follow semantic versioning, so do this by hand.

fixes: #13519

Not all versions from Vsphere follow semantic versioning, so do this by
hand.

fixes: influxdata#13519
@telegraf-tiger telegraf-tiger bot added fix pr to fix corresponding bug plugin/input 1. Request for new input plugins 2. Issues/PRs that are related to input plugins labels Jul 5, 2023
@telegraf-tiger
Copy link
Contributor

telegraf-tiger bot commented Jul 5, 2023

v1 := semver.New(current)
v2 := semver.New(base)
return v1.LessThan(*v2)
func versionLowerThan(current string, major int, minor int) bool {
Copy link
Contributor

Choose a reason for hiding this comment

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

I would not change the signature to be more flexible in future.

@powersj powersj marked this pull request as ready for review July 6, 2023 12:56
@powersj powersj added the ready for final review This pull request has been reviewed and/or tested by multiple users and is ready for a final review. label Jul 6, 2023
Copy link
Member

@srebhan srebhan left a comment

Choose a reason for hiding this comment

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

Looks good to me. Thanks @powersj!

@srebhan srebhan merged commit 64ea1d0 into influxdata:master Jul 6, 2023
@srebhan srebhan added this to the v1.27.2 milestone Jul 10, 2023
powersj added a commit that referenced this pull request Jul 10, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
fix pr to fix corresponding bug plugin/input 1. Request for new input plugins 2. Issues/PRs that are related to input plugins ready for final review This pull request has been reviewed and/or tested by multiple users and is ready for a final review.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

vSphere Plugin - VSAN extension not working
3 participants