Skip to content

Commit

Permalink
Another attempted fix for Chef 11
Browse files Browse the repository at this point in the history
  • Loading branch information
gregkare committed Apr 5, 2018
1 parent 3aa8f08 commit 43ca20e
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions lib/health_inspector/checklists/cookbooks.rb
Expand Up @@ -78,9 +78,7 @@ def validate_files_in_the_repo_not_on_the_server
begin
# Cast local (Chef::Version) into a string
cookbook_loader = Chef::Cookbook::CookbookVersionLoader.new(cookbook_path)
unless Gem::Version.new(Chef::VERSION) < Gem::Version.new('12.0.0')
cookbook_loader.load!
end
cookbook_loader.load_cookbooks
local_cookbook = cookbook_loader.cookbook_version

remote_cookbook = Chef::CookbookVersion.load(name, local.to_s)
Expand Down

0 comments on commit 43ca20e

Please sign in to comment.