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

Drop erroneous double quotes from virt plugin template #954

Merged

Conversation

leifmadsen
Copy link
Contributor

Use of double-quotes around the HostnameFormat field in the virt plugin erb
template is wrong when using multiple names. Error generated will be
[2020-09-04 03:17:04] virt plugin: unknown HostnameFormat field: name metadata uuid
when setting the configuration to

HostnameFormat "name metadata uuid"

Simply removing the double quotes allows for a successful virt plugin load. Source
in collectd justifying this change is at: https://github.com/collectd/collectd/blob/main/src/virt.c#L834

Fixes #953

@bastelfreak bastelfreak added bug Something isn't working needs-tests labels Sep 18, 2020
@bastelfreak
Copy link
Member

thanks for the PR! can you add a test to ensure it works now?

@leifmadsen
Copy link
Contributor Author

Heh I knew that was coming :)

@leifmadsen leifmadsen force-pushed the lmadsen-drop-quotes-hostname-format branch from 65b52ae to 3a4250e Compare September 18, 2020 17:56
@leifmadsen leifmadsen force-pushed the lmadsen-drop-quotes-hostname-format branch from 3a4250e to 34bc600 Compare November 25, 2020 18:59
Use of double-quotes around the HostnameFormat field in the virt plugin erb
template is wrong when using multiple names. Error generated will be
[2020-09-04 03:17:04] virt plugin: unknown HostnameFormat field: name metadata uuid
when setting the configuration to

HostnameFormat "name metadata uuid"

Simply removing the double quotes allows for a successful virt plugin load. Source
in collectd justifying this change is at: https://github.com/collectd/collectd/blob/main/src/virt.c#L834

Fixes voxpupuli#953
@leifmadsen leifmadsen force-pushed the lmadsen-drop-quotes-hostname-format branch from 34bc600 to 5ab718b Compare December 1, 2020 14:54
@leifmadsen
Copy link
Contributor Author

@bastelfreak all done! :)

@leifmadsen
Copy link
Contributor Author

Any chance I can get a review and have this merged?

@ghoneycutt ghoneycutt merged commit 23adc78 into voxpupuli:master Jan 5, 2021
@leifmadsen leifmadsen deleted the lmadsen-drop-quotes-hostname-format branch January 5, 2021 02:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

collectd fails to load when using multiple hostname format values
4 participants