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

elasticsearch_service/service_actions accepts (but does not support) Symbols #438

Closed
eherot opened this issue Mar 1, 2016 · 3 comments
Closed

Comments

@eherot
Copy link

eherot commented Mar 1, 2016

The result is this:

           ================================================================================
           Error executing action `configure` on resource 'elasticsearch_service[elasticsearch]'
           ================================================================================

           NoMethodError
           -------------
           undefined method `each' for :start:Symbol

           Cookbook Trace:
           ---------------
           /tmp/kitchen/cache/cookbooks/elasticsearch/libraries/provider_service.rb:45:in `block in <class:ServiceProvider>'
@martinb3
Copy link
Contributor

martinb3 commented Mar 2, 2016

Hi there -- there was a bug in some Chef versions (12.4.x I believe) where the list of actions on a resource wasn't always an array (sometimes it was a symbol); what version of Chef are you using? Thanks!

@eherot
Copy link
Author

eherot commented Mar 2, 2016

I'm running 12.7.2 but I don't think that would apply here since I'm passing service_actions (as opposed to action) which is not a built-in method.

Here's the original resource call (sorry for not including it before):

elasticsearch_service 'elasticsearch' do
  service_actions :start
end

@martinb3
Copy link
Contributor

martinb3 commented Mar 4, 2016

Thank you for the report! I've made a fix and I'll be releasing a new version shortly.

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

No branches or pull requests

2 participants