summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn McCrae <john.mccrae@progress.com>2021-04-14 13:53:58 -0700
committerJohn McCrae <jmccrae@chef.io>2021-04-20 11:59:54 -0700
commit8c3eb3992f8e37e1de0094e86ecf64cecc15c18f (patch)
tree2ffd2e30a20512f21658ee7c2bcc57e5477f3482
parent290820a155412009f4a30549720fee049087a046 (diff)
downloadchef-8c3eb3992f8e37e1de0094e86ecf64cecc15c18f.tar.gz
correcting spelling errors
Signed-off-by: John McCrae <john.mccrae@progress.com>
-rw-r--r--lib/chef/resource/windows_certificate.rb6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/chef/resource/windows_certificate.rb b/lib/chef/resource/windows_certificate.rb
index 0055365f1c..2f3c87d146 100644
--- a/lib/chef/resource/windows_certificate.rb
+++ b/lib/chef/resource/windows_certificate.rb
@@ -295,9 +295,9 @@ class Chef
def pfx_ps_cmd(thumbprint, store_location: "LocalMachine", store_name: "My", output_path:, password: )
<<-CMD
- $mypwd = ConvertTo-SecureString -String "#{password}" -Force -AsPlainText
+ $my_pwd = ConvertTo-SecureString -String "#{password}" -Force -AsPlainText
$cert = Get-ChildItem -path cert:\\#{store_location}\\#{store_name} -Recurse | Where { $_.Thumbprint -eq "#{thumbprint.upcase}" }
- Export-PfxCertificate -Cert $cert -FilePath "#{output_path}" -Password $mypwd
+ Export-PfxCertificate -Cert $cert -FilePath "#{output_path}" -Password $my_pwd
CMD
end
@@ -387,7 +387,7 @@ class Chef
::File.exist?(new_resource.source)
contents = ::File.binread(new_resource.source)
rescue => exception
- message = "Unable to load the certificate object from the specified localpath : #{new_resource.source}\n"
+ message = "Unable to load the certificate object from the specified local path : #{new_resource.source}\n"
message << exception.message
raise Chef::Exceptions::FileNotFound, message
end