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

Handle strings better in users.{allow,deny} #46

Merged
merged 1 commit into from
Feb 2, 2015

Conversation

anders-larsson
Copy link
Contributor

Puppetserver's ruby intepreter is more strict than the previously used intepreter used by Puppet. It's no longer allow to do .each on strings. This commit prevents the error below from occuring if users_{allow,deny}_entries is an string.

Could not retrieve catalog from remote server: Error 400 on SERVER: Failed to parse template vas/users.allow.erb: Filepath: .../modules/vas/templates/users.allow.erb Line: 3 Detail: undefined method `each' for "":String at .../modules/vas/manifests/init.pp:323 on node fqdn.

@anders-larsson
Copy link
Contributor Author

Wait a bit with merging this.

@anders-larsson
Copy link
Contributor Author

Please review it. Added spec tests for strings in users.allow

jwennerberg pushed a commit that referenced this pull request Feb 2, 2015
Handle strings better in users.{allow,deny}
@jwennerberg jwennerberg merged commit b10d44d into Ericsson:master Feb 2, 2015
@anders-larsson anders-larsson deleted the fix_puppetserver_each branch February 2, 2015 16:01
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.

2 participants