-
-
Notifications
You must be signed in to change notification settings - Fork 273
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 ignoreselected
typo in protocols.conf.erb template
#957
Conversation
why are unit Tests failing on puppet 5 & 6? |
templates/plugin/protocols.conf.erb
Outdated
@@ -9,8 +9,8 @@ if @values | |||
end | |||
end | |||
-%> | |||
<% if @ignore_selected != nil -%> | |||
IgnoreSelected <%= @ignore_selected %> | |||
<% if @ignoreselected != nil -%> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Currently, ignoreselected
is a Boolean. That means it can never be nil
(undef in puppet).
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks like it was always a boolean and never defaulted to undef
.
I've also made the default for `ignoreselected` `undef`. Up until now, this parameter *never* worked. By making the default `undef` (instead of `false`), the majority of users will not see any change to their config files and the collectd service won't get restarted.
ea11c42
to
03c2c23
Compare
ignoreselected
typo in protocols.conf.erb template
@VtG242 Thanks for the bugfix! I've made the existing test pass by changing the default to |
Pull Request (PR) description