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

ro_community cannot be set to 'undef' to remove from ERB template #36

Closed
bdellegrazie opened this issue Feb 19, 2015 · 0 comments
Closed
Assignees
Labels
bug Something isn't working

Comments

@bdellegrazie
Copy link

Hi,

Presently in the snmpd.conf ERB template, ro_community and the others are all tested for 'nil' value before outputting the content - this is fine. However the way the parameters are constructed with the ENC backend and the hard coded default there is no possible way to set the variable to undef and consequently skip its output.

Can I suggest checking for both nil and size > 0 as this would allow forcefully disabling the output of those parameters?

I will issue a pull request since it is just a template change.

@razorsedge razorsedge self-assigned this Mar 20, 2015
@razorsedge razorsedge added enhancement New feature or request bug Something isn't working and removed enhancement New feature or request labels Mar 20, 2015
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

No branches or pull requests

2 participants