{"action":"created","issue":{"url":"https://api.github.com/repos/elastic/cookbook-elasticsearch/issues/333","labels_url":"https://api.github.com/repos/elastic/cookbook-elasticsearch/issues/333/labels{/name}","comments_url":"https://api.github.com/repos/elastic/cookbook-elasticsearch/issues/333/comments","events_url":"https://api.github.com/repos/elastic/cookbook-elasticsearch/issues/333/events","html_url":"https://github.com/elastic/cookbook-elasticsearch/issues/333","id":93584429,"number":333,"title":"undefined method 'name' for Hash","user":{"login":"shawnashlee","id":1420261,"avatar_url":"https://avatars.githubusercontent.com/u/1420261?v=3","gravatar_id":"","url":"https://api.github.com/users/shawnashlee","html_url":"https://github.com/shawnashlee","followers_url":"https://api.github.com/users/shawnashlee/followers","following_url":"https://api.github.com/users/shawnashlee/following{/other_user}","gists_url":"https://api.github.com/users/shawnashlee/gists{/gist_id}","starred_url":"https://api.github.com/users/shawnashlee/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/shawnashlee/subscriptions","organizations_url":"https://api.github.com/users/shawnashlee/orgs","repos_url":"https://api.github.com/users/shawnashlee/repos","events_url":"https://api.github.com/users/shawnashlee/events{/privacy}","received_events_url":"https://api.github.com/users/shawnashlee/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/elastic/cookbook-elasticsearch/labels/oldversion","name":"oldversion","color":"5319e7"},{"url":"https://api.github.com/repos/elastic/cookbook-elasticsearch/labels/question","name":"question","color":"eb6420"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-07-07T17:28:09Z","updated_at":"2015-07-07T20:30:10Z","closed_at":"2015-07-07T20:30:10Z","body":"Hello,\r\n\r\nI am using your cookbook (0.3.13) on Ubuntu 14.04 with omnibus chef 12.1.2 and came upon this issue, wondering if anyone else has experienced it.\r\n\r\nundefined method `name' for #<Hash:0x00000001fe57f8>\r\n\r\nin elasticsearch/libraries/search_for_nodes.rb:\r\n58  Chef::Log.debug(\"Selected attribute: #{attribute.inspect} for node: #{node.name.inspect} with value: #{value.inspect}\")\r\n\r\nI found changing the 3 instances of \"node.name.inspect\" to \"node['name'].inspect\" fixed it. Dont think it would break backwards compatibility but im not 100% sure. Any chance on getting this updated?\r\n\r\nThanks"},"comment":{"url":"https://api.github.com/repos/elastic/cookbook-elasticsearch/issues/comments/119327129","html_url":"https://github.com/elastic/cookbook-elasticsearch/issues/333#issuecomment-119327129","issue_url":"https://api.github.com/repos/elastic/cookbook-elasticsearch/issues/333","id":119327129,"user":{"login":"martinb3","id":103033,"avatar_url":"https://avatars.githubusercontent.com/u/103033?v=3","gravatar_id":"","url":"https://api.github.com/users/martinb3","html_url":"https://github.com/martinb3","followers_url":"https://api.github.com/users/martinb3/followers","following_url":"https://api.github.com/users/martinb3/following{/other_user}","gists_url":"https://api.github.com/users/martinb3/gists{/gist_id}","starred_url":"https://api.github.com/users/martinb3/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/martinb3/subscriptions","organizations_url":"https://api.github.com/users/martinb3/orgs","repos_url":"https://api.github.com/users/martinb3/repos","events_url":"https://api.github.com/users/martinb3/events{/privacy}","received_events_url":"https://api.github.com/users/martinb3/received_events","type":"User","site_admin":false},"created_at":"2015-07-07T20:30:10Z","updated_at":"2015-07-07T20:30:10Z","body":"We've re-written the cookbook using libraries that expose resources and providers, so you shouldn't see this problem on the newer version. We haven't released it to supermarket yet, but I'm pretty sure this will go away, as we haven't included a search recipe in the new version. We decided it wasn't core to the goals of the cookbook, and we had too many people who didn't use it. Would you give that one a try and let us know? Unfortunately, you'll have to implement the search logic yourself, but fortunately, you will be in full control of it to bugfix it as well :)"}}