From e837cf0bcdc4c600e47a646580de47646a8addad Mon Sep 17 00:00:00 2001 From: Austina Lin Date: Fri, 6 Mar 2020 16:10:40 -0500 Subject: [PATCH] tests not passing, reverting commit Revert "Update warning message if root certs were not able to be updated" This reverts commit 60860993cd2f1e92c864d35b783ba47e78164a07. Co-authored-by: Flora Gallina-Jones --- stemcell-automation/AutomationHelpers.ps1 | 9 +++++++++ stemcell-automation/ProvisionVM.ps1 | 2 +- 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/stemcell-automation/AutomationHelpers.ps1 b/stemcell-automation/AutomationHelpers.ps1 index aef192fe..de87aff8 100644 --- a/stemcell-automation/AutomationHelpers.ps1 +++ b/stemcell-automation/AutomationHelpers.ps1 @@ -499,8 +499,17 @@ function Extract-LGPO function Install-WUCerts { + try + { Get-WUCerts Write-Log "Successfully retrieved Windows Update certs" + } + catch [Exception] + { + Write-Log $_.Exception.Message + Write-Log "Failed to retrieve updated root certificates from the public Windows Update Server." + throw $_.Exception + } } function Create-VersionFile diff --git a/stemcell-automation/ProvisionVM.ps1 b/stemcell-automation/ProvisionVM.ps1 index 75063c10..b8b7f794 100644 --- a/stemcell-automation/ProvisionVM.ps1 +++ b/stemcell-automation/ProvisionVM.ps1 @@ -21,7 +21,7 @@ function ProvisionVM() { catch [Exception] { Write-Log $_.Exception.Message - Write-Warning "Failed to retrieve updated root certificates from the public Windows Update Server. This should not impact the successful execution of stembuild construct. If your root certificates are out of date, Diego cells running on VMs built from this stemcell may not be able to make outbound network connections." + Write-Warning "This should not impact the successful execution of stembuild construct. If the root certificates are out of date, Diego cells running on VMs built off of this stemcell may not be able to make outbound network connections." } Create-VersionFile -Version $Version Restart-Computer