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

Test provinding values as integers #91

Merged
merged 1 commit into from
Oct 16, 2017
Merged

Test provinding values as integers #91

merged 1 commit into from
Oct 16, 2017

Conversation

infracaninophile
Copy link
Contributor

I'm implementing some new freeradius setups, and this module seems pretty much exactly what I need, except it fails to run complaining about:

Error: Could not retrieve catalog from remote server: Error 500 on SERVER: Server Error: Evaluation Error: Error while evaluating a Resource Statement, Logrotate::Rule[radacct]: parameter 'rotate' expects a value of type Undef or Integer, got String at /etc/puppetlabs/code/environments/freeradius/modules/freeradius/manifests/init.pp:311 on node radius.ab2.staging.gigaclear.net

I made the obvious change as in this pull request, and it seems to fix the problem. Yet there was
clearly a commit fba271f in 2015 that made exactly the opposite change, and this problem is such a clear show-stopper I must be missing something?

This is on CentOS 7, puppet-agent-1.10.8-1.el7.x86_64

@djjudas21
Copy link
Owner

Thanks for this.

Looks like the dependent module puppet/logrotate implemented parameter data types since I last updated. I guess you're running a version that includes this commit (we're running an older version over here). It's pretty clear that the module expects an integer input so that's what we must give it.

I think the commit against this module in 2015 that added quoting was for neatness, before string vs integer was really a thing, and can safely be ignored. I'm happy to accept this PR as it is - thanks for your effort.

@djjudas21 djjudas21 merged commit a99d3d3 into djjudas21:master Oct 16, 2017
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

Successfully merging this pull request may close these issues.

None yet

2 participants