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

Comments

Projects
None yet
2 participants
@eherot
Copy link

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

This comment has been minimized.

Copy link
Contributor

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!

@martinb3 martinb3 added the question label Mar 2, 2016

@eherot

This comment has been minimized.

Copy link
Author

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 martinb3 closed this in 782eeb6 Mar 4, 2016

@martinb3

This comment has been minimized.

Copy link
Contributor

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
You can’t perform that action at this time.