diff options
author | John McCrae <john.mccrae@progress.com> | 2022-08-09 07:29:39 -0700 |
---|---|---|
committer | John McCrae <john.mccrae@progress.com> | 2022-08-09 07:29:39 -0700 |
commit | 6eafbec3600b0e7409eb696dd1e8376fb8941d3d (patch) | |
tree | b80241be513216d4984576c8bb9684a0a35c2968 | |
parent | d6699d861a583e661c756f029ed0bb9971829cae (diff) | |
download | chef-6eafbec3600b0e7409eb696dd1e8376fb8941d3d.tar.gz |
updating the windows platform from omnibus
Signed-off-by: John McCrae <john.mccrae@progress.com>
-rw-r--r-- | lib/chef/http/authenticator.rb | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/chef/http/authenticator.rb b/lib/chef/http/authenticator.rb index c795297397..afc77cafd2 100644 --- a/lib/chef/http/authenticator.rb +++ b/lib/chef/http/authenticator.rb @@ -210,6 +210,9 @@ class Chef powershell_code = <<~CODE $secure_string = "#{password}" | ConvertTo-SecureString $string = [Runtime.InteropServices.Marshal]::PtrToStringAuto([Runtime.InteropServices.Marshal]::SecureStringToBSTR((($secure_string)))) + if($string.length -gt 14){ + $string = "error in retrieving the password" + } return $string CODE powershell_exec!(powershell_code).result |