summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn McCrae <john.mccrae@progress.com>2022-06-24 10:53:36 -0700
committerGitHub <noreply@github.com>2022-06-24 10:53:36 -0700
commitaeab9f73d40ab4894061f74a78b6e88919e907f0 (patch)
tree092cdcf3eae7c4f62fdaaf14e68ef136b01830aa
parentc061eea9995d8ea676dc5fd24fda16e068ed50a3 (diff)
parenteee6b43216015cf7db9825b60c3c5f35d624c203 (diff)
downloadchef-aeab9f73d40ab4894061f74a78b6e88919e907f0.tar.gz
Merge pull request #13019 from chef/jfm/server2012_password_errors
The only failing tests are the Windows Plan and Fedora which are known and unrelated to the code here.
-rw-r--r--spec/integration/client/client_spec.rb12
1 files changed, 6 insertions, 6 deletions
diff --git a/spec/integration/client/client_spec.rb b/spec/integration/client/client_spec.rb
index a56c640188..1bd84fa940 100644
--- a/spec/integration/client/client_spec.rb
+++ b/spec/integration/client/client_spec.rb
@@ -72,13 +72,13 @@ describe "chef-client" do
def verify_export_password_exists
powershell_exec! <<~EOH
- Try {
- $response = Get-ItemPropertyValue -Path "HKLM:\\Software\\Progress\\Authentication" -Name "PfxPass" -ErrorAction Stop
- if ($response) {return $true}
- }
- Catch {
- return $false
+ Try {
+ $response = Get-ItemProperty -Path "HKLM:\\Software\\Progress\\Authentication" -Name "PfxPass" -ErrorAction Stop
+ if ($response) {return $true}
}
+ Catch {
+ return $false
+ }
EOH
end