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

Fix error when running with Ruby 1.9.x on the server side #16

Merged
merged 1 commit into from
Sep 6, 2018

Conversation

nmaludy
Copy link
Contributor

@nmaludy nmaludy commented Sep 6, 2018

Closes #15

Found out that %i[] is for Ruby 2.0 only.

Puppet Server runs JRuby 1.7 which is Ruby 1.9.x and, for some reason, the package provider code is executed by the Server. This means Ruby 2.0 features can't be used in those files.

@hbuckle
Copy link
Owner

hbuckle commented Sep 6, 2018

Thanks for the report and the fix. I'll also update rubocop.yml so this doesn't get changed back

@hbuckle hbuckle merged commit 2f6b9cb into hbuckle:master Sep 6, 2018
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