From af36fbc823ad6684e37986d8e4bd87d6cedcab11 Mon Sep 17 00:00:00 2001 From: Ryan Johnson Date: Thu, 23 Mar 2023 12:57:30 -0400 Subject: [PATCH] fix: apply suggestions from code review Signed-off-by: Ryan Johnson --- VMware.CloudFoundation.Reporting.psm1 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/VMware.CloudFoundation.Reporting.psm1 b/VMware.CloudFoundation.Reporting.psm1 index 97b0d9ee..0ee3c621 100644 --- a/VMware.CloudFoundation.Reporting.psm1 +++ b/VMware.CloudFoundation.Reporting.psm1 @@ -942,11 +942,11 @@ Function Request-SoSHealthJson { Copy-Item $savedFile $outFile | Out-NULL Remove-Item -Force $savedFile | Out-NULL } else { - Write-Error "A error was encountered downloading the health summary bundle." + Write-Error "An error was encountered downloading the health summary bundle." Return $false } - # Untar tar.gz file and extract health-results.json file + # Untar the tar.gz file and extract health-results.json file. tar -xzf $outFile -C $outFilePath | Out-NULL $healthSummaryPath = gci -recurse -filter "health-results.json" -Path $outFilePath $healthSummaryFile = $healthSummaryPath.DirectoryName + "\health-results.json"