chef / chef

Chef Infra, a powerful automation platform that transforms infrastructure into code automating how infrastructure is configured, deployed and managed across any environment, at any scale

Home Page:http://www.chef.io/chef/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

bundle exec knife fail with attempt to use deprecated `untaint` method

chouetz opened this issue · comments

Description

Issue using knife prevents execution because using a deprecated method

/Users/nicolas.schweitzer/.rbenv/versions/3.2.2/lib/ruby/gems/3.2.0/gems/knife-18.3.0/lib/chef/knife/core/gem_glob_loader.rb:81:in `block in find_files_latest_gems': undefined method `untaint' for "/Users/nicolas.schweitzer/.rbenv/versions/3.2.2/lib/ruby/gems/3.2.0/gems/knife-18.3.0/lib/chef/knife/acl_add.rb":String (NoMethodError)

            end.flatten.select { |file| File.file? file.untaint }

I've created a tentative fix PR

Chef Version

18.3.0

Platform Version

Macos m1 13.6.2

Replication Case

Client Output


Stacktrace

Fix PR merged, target 18.4 release.