summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn McCrae <john.mccrae@progress.com>2022-06-21 10:28:10 -0700
committerGitHub <noreply@github.com>2022-06-21 10:28:10 -0700
commit803af14184219282d36bc6229868fca5f1cb2970 (patch)
tree5a8467df7321af8e6018b99eff4694194044bb6a
parent9894e49919e40798b6830720110fe99166b969bf (diff)
parentc5ee68926f62715939033f70e6db0ec548b66e9c (diff)
downloadchef-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.rb2
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 {