Skip to content
This repository has been archived by the owner on Dec 27, 2022. It is now read-only.

chef/mixin/language incompatible with Chef 14 #491

Closed
dguertin opened this issue Apr 4, 2018 · 3 comments
Closed

chef/mixin/language incompatible with Chef 14 #491

dguertin opened this issue Apr 4, 2018 · 3 comments

Comments

@dguertin
Copy link

dguertin commented Apr 4, 2018

The recent upgrade to Chef 14 has caused chef-client runs to fail with the following error:

`LoadError

cannot load such file -- chef/mixin/language

Cookbook Trace:

/var/chef/cache/cookbooks/logstash/providers/config.rb:10:in `class_from_file'

Relevant File Content:

/var/chef/cache/cookbooks/logstash/providers/config.rb:

3: # Provider:: config
4: # Author:: John E. Vincent
5: # License:: Apache 2.0
6: #
7: # Copyright 2014, John E. Vincent
8:
9: require 'chef/mixin/shell_out'
10>> require 'chef/mixin/language'
11: include Chef::Mixin::ShellOut
12:
13: def load_current_resource
14: @instance = new_resource.instance
15: @baseDir = Logstash.get_attribute_or_default(node, @instance, 'basedir')
16: @templates = new_resource.templates || Logstash.get_attribute_or_default(node, @instance, 'config_templates')
17: @templates_cookbook = new_resource.templates_cookbook || Logstash.get_attribute_or_default(node, @instance, 'config_templates_cookbook')
18:
19: # merge user overrides into defaults for configuration variables

System Info:

chef_version=14.0.190
platform=centos
platform_version=7.4.1708
ruby=ruby 2.5.1p57 (2018-03-29 revision 63029) [x86_64-linux]
program_name=chef-client worker: ppid=31320;start=12:03:08;
executable=/opt/chef/bin/chef-client
`

@askz
Copy link

askz commented Jul 18, 2018

Anyone got a fix somehow?

@chrisferry
Copy link

Bueller?

28mm added a commit to 28mm/chef-logstash that referenced this issue Dec 20, 2018
sherenator added a commit that referenced this issue Mar 21, 2019
#491 - Remove chef/mixin/language references to support Chef 14
@sherenator
Copy link
Collaborator

Fixed in #495

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants