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

undefined method `unified_mode' #239

Closed
DivyaUppu opened this issue Oct 11, 2022 · 0 comments
Closed

undefined method `unified_mode' #239

DivyaUppu opened this issue Oct 11, 2022 · 0 comments

Comments

@DivyaUppu
Copy link

DivyaUppu commented Oct 11, 2022

When running with chef 14 I am getting this error, from this link it seems that unified_mode is not available in chef. Please help on this issue

================================================================================

Recipe Compile Error in /var/chef/cache/cookbooks/line/resources/add_to_list.rb

================================================================================

NoMethodError


undefined method `unified_mode' for #Class:0x0000000003fe41a8

Cookbook Trace:


/var/chef/cache/cookbooks/line/resources/add_to_list.rb:12:in `class_from_file'

Relevant File Content:


/var/chef/cache/cookbooks/line/resources/add_to_list.rb:

5: property :eol, String
6: property :ignore_missing, [true, false], default: true
7: property :path, String
8: property :pattern, [String, Regexp]
9:
10: resource_name :add_to_list
11: provides :add_to_list
12>> unified_mode true
13:
14: action :edit do
15: raise_not_found
16: sensitive_default
17: eol = default_eol
18: backup_if_true
19: current = target_current_lines
20:
21: # insert

System Info:


chef_version=14.11.21
platform=centos
platform_version=7.9.2009
ruby=ruby 2.5.3p105 (2018-10-18 revision 65156) [x86_64-linux]
program_name=/bin/chef-client
executable=/opt/chef/bin/chef-client

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

1 participant