diff options
author | John McCrae <john.mccrae@progress.com> | 2022-06-21 10:28:10 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-06-21 10:28:10 -0700 |
commit | 803af14184219282d36bc6229868fca5f1cb2970 (patch) | |
tree | 5a8467df7321af8e6018b99eff4694194044bb6a | |
parent | 9894e49919e40798b6830720110fe99166b969bf (diff) | |
parent | c5ee68926f62715939033f70e6db0ec548b66e9c (diff) | |
download | chef-803af14184219282d36bc6229868fca5f1cb2970.tar.gz |
Merge pull request #13010 from chef/jfm/cert_creation_part3
Signed-off-by: John McCrae <john.mccrae@progress.com>. Ran an AdHoc job and this works on the builds as advertised.
-rw-r--r-- | spec/integration/client/client_spec.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/spec/integration/client/client_spec.rb b/spec/integration/client/client_spec.rb index d2b79edf05..a56c640188 100644 --- a/spec/integration/client/client_spec.rb +++ b/spec/integration/client/client_spec.rb @@ -38,7 +38,7 @@ describe "chef-client" do def install_certificate_in_store(client_name) if ChefUtils.windows? powershell_exec! <<~EOH - if (-not ($PSVersionTable.PSVersion.Major -ge 5)) { + if (-not (($PSVersionTable.PSVersion.Major -ge 5) -and ($PSVersionTable.PSVersion.Build -ge 22000)) ) { New-SelfSignedCertificate -CertStoreLocation Cert:\\LocalMachine\\My -DnsName "#{client_name}" } else { |