summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTim Smith <tsmith84@gmail.com>2020-01-14 10:51:41 -0800
committerTim Smith <tsmith84@gmail.com>2020-01-14 10:51:41 -0800
commita9e1ade82ec39d1b1fbdea29b79cfd9c139fffa8 (patch)
treeacbafb2fb294b7fa20f648042b825002ec3a5301
parent6ecd3150bb62c19bbf6f2f549883d70b401601b3 (diff)
downloadchef-supermarket_fix.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>
-rw-r--r--lib/chef/knife/supermarket_install.rb2
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