summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn McCrae <jmccrae@chf.io>2022-03-25 14:13:09 -0700
committerJohn McCrae <jmccrae@chf.io>2022-03-25 14:13:09 -0700
commit57f421073571d43da4098fc4607ece1543c74246 (patch)
tree4401bb72511c3e4f2794088c7cb4aeb0bb7ac57d
parentcfd064abc58d37f165966069c9c26915d7748aac (diff)
downloadchef-57f421073571d43da4098fc4607ece1543c74246.tar.gz
Package resource was calling a non-existent error method
Signed-off-by: John McCrae <jmccrae@chf.io>
-rw-r--r--Gemfile.lock2
-rw-r--r--lib/chef/provider/package/powershell.rb2
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