diff options
author | Tim Smith <tsmith84@gmail.com> | 2020-01-14 10:51:41 -0800 |
---|---|---|
committer | Tim Smith <tsmith84@gmail.com> | 2020-01-14 10:51:41 -0800 |
commit | a9e1ade82ec39d1b1fbdea29b79cfd9c139fffa8 (patch) | |
tree | acbafb2fb294b7fa20f648042b825002ec3a5301 /lib/chef/knife | |
parent | 6ecd3150bb62c19bbf6f2f549883d70b401601b3 (diff) | |
download | chef-a9e1ade82ec39d1b1fbdea29b79cfd9c139fffa8.tar.gz |
Use the right class in knife supermarket installlsupermarket_fix
A user on discourse is seeing errors related to this old class. I'm not able to reproduce that failure, but we shouldn't be calling the deprecated class here. Changing this avoids a bogus deprecation warning that tells the user to stop using the legacy command, when they're actually using the new command.
Signed-off-by: Tim Smith <tsmith@chef.io>
Diffstat (limited to 'lib/chef/knife')
-rw-r--r-- | lib/chef/knife/supermarket_install.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/chef/knife/supermarket_install.rb b/lib/chef/knife/supermarket_install.rb index b0b8fbe1aa..204454eaba 100644 --- a/lib/chef/knife/supermarket_install.rb +++ b/lib/chef/knife/supermarket_install.rb @@ -137,7 +137,7 @@ class Chef end def download_cookbook_to(download_path) - downloader = Chef::Knife::CookbookSiteDownload.new + downloader = Chef::Knife::SupermarketDownload.new downloader.config[:file] = download_path downloader.config[:supermarket_site] = config[:supermarket_site] downloader.name_args = name_args |