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

Remove quotes from the Forward option #639

Closed
mirekys opened this issue Jan 28, 2017 · 3 comments
Closed

Remove quotes from the Forward option #639

mirekys opened this issue Jan 28, 2017 · 3 comments

Comments

@mirekys
Copy link
Contributor

mirekys commented Jan 28, 2017

Hello,

i would like to suggest removing quotes from:
https://github.com/voxpupuli/puppet-collectd/blob/master/templates/plugin/network.conf.erb#L9

Collectd (at least version 5.6.0) is complaining
on startup when forwarding is configured using this module.

Affected Puppet, Ruby, OS and module versions/distributions

  • Puppet: 4.8.2
  • Ruby: 2.1.9
  • Distribution: CentOS 7
  • Module version: 5.3.0

How to reproduce (e.g Puppet code you use)

class { 'collectd::plugin::network':
                forward => true,

What are you seeing

#10-network.conf
<Plugin network>
    Forward "true"

</Plugin>
# startup log
collectd[]: plugin_load: plugin "network" successfully loaded.
collectd[]: cf_util_get_boolean: The Forward option requires exactly one boolean argument.
@bastelfreak
Copy link
Member

Hi @mirekys, thanks for the bug report. Are you able to provide a fix as well? Do you know if earlier versions of collectd also complain or only 5.6.0 and newer?

@mirekys
Copy link
Contributor Author

mirekys commented Jan 28, 2017

I cannot test on older or newer versions but by looking into the source code, I found
a somehow hidden deprecation notice, that quoted booleans will no longer be supported by collectd:
https://github.com/collectd/collectd/blob/collectd-5.6/src/daemon/configfile.c#L1135
EDIT: relevant collectd issue is here:
collectd/collectd#2083 (comment)

But booleans without quotes should always work as expected, I can surely do a pull request for this.

@juniorsysadmin
Copy link
Member

Hopefully most if not all cases have been fixed by #640

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants