From 57f421073571d43da4098fc4607ece1543c74246 Mon Sep 17 00:00:00 2001 From: John McCrae Date: Fri, 25 Mar 2022 14:13:09 -0700 Subject: Package resource was calling a non-existent error method Signed-off-by: John McCrae --- Gemfile.lock | 2 +- lib/chef/provider/package/powershell.rb | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Gemfile.lock b/Gemfile.lock index 5b47765f20..1644c5763e 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -470,4 +470,4 @@ DEPENDENCIES webmock BUNDLED WITH - 2.3.7 + 2.3.5 diff --git a/lib/chef/provider/package/powershell.rb b/lib/chef/provider/package/powershell.rb index 2fe6cc2abc..caccb501d9 100644 --- a/lib/chef/provider/package/powershell.rb +++ b/lib/chef/provider/package/powershell.rb @@ -56,7 +56,7 @@ class Chef names.each_with_index do |name, index| cmd = powershell_exec(build_powershell_package_command("Install-Package '#{name}'", versions[index]), timeout: new_resource.timeout) next if cmd.nil? - raise Chef::Exceptions::PowershellCmdletException, "Failed to install package due to catalog signing error, use skip_publisher_check to force install" if /SkipPublisherCheck/.match?(cmd.error) + raise Chef::Exceptions::PowershellCmdletException, "Failed to install package due to catalog signing error, use skip_publisher_check to force install" if /SkipPublisherCheck/.match?(cmd.error!) end end -- cgit v1.2.1