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

Recipe compile errors when using chef-client 16 #178

Closed
emillbrandt opened this issue Jan 28, 2021 · 0 comments · Fixed by #179
Closed

Recipe compile errors when using chef-client 16 #178

emillbrandt opened this issue Jan 28, 2021 · 0 comments · Fixed by #179

Comments

@emillbrandt
Copy link
Contributor

emillbrandt commented Jan 28, 2021

Environment Information

Please include the following:

  • version of cookbook: 1.5.0
  • version of chef: 16.1.16+
  • operating system:
  • resources that are affected by issue: all custom resources

Expected Behavior

Custom resources should be usable by including sumologic-collector cookbook in metadata.rb

Actual Behavior

       ================================================================================
       Recipe Compile Error in /tmp/kitchen/cache/cookbooks/bc_ops_sumologic/recipes/default.rb
       ================================================================================

       NoMethodError
       -------------
       undefined method `sumo_source_local_file' for cookbook: bc_ops_sumologic, recipe: _sources :Chef::Recipe

Steps to Reproduce

Try to define a resource in your cookbook

sumo_source_local_file 'messages' do
  source_json_directory '/etc/sumo.d'
  category system_category
  path_expression '/var/log/messages'
end
emillbrandt pushed a commit to emillbrandt/sumologic-collector-chef-cookbook that referenced this issue Jan 28, 2021
…Logic#178.

This change maintains backwards compatibility with previous chef client versions.

https://github.com/chef/chef/blob/master/RELEASE_NOTES.md#whats-new-in-16244

Signed-off-by: Eric Millbrandt <emillbrandt@brightcove.com>
sumo-drosiek pushed a commit that referenced this issue May 7, 2021
#179)

This change maintains backwards compatibility with previous chef client versions.

https://github.com/chef/chef/blob/master/RELEASE_NOTES.md#whats-new-in-16244

Signed-off-by: Eric Millbrandt <emillbrandt@brightcove.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
1 participant