From 6b23905a7c551325945bc53a80380aa36dfffd7e Mon Sep 17 00:00:00 2001 From: Azure SDK Bot <53356347+azure-sdk@users.noreply.github.com> Date: Mon, 15 Jan 2024 01:08:04 -0800 Subject: [PATCH] Correct the variable name in spec location validation script (#5265) Co-authored-by: raychen --- eng/common/scripts/Verify-RestApiSpecLocation.ps1 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/eng/common/scripts/Verify-RestApiSpecLocation.ps1 b/eng/common/scripts/Verify-RestApiSpecLocation.ps1 index 51d5d86bb..b25dda05f 100644 --- a/eng/common/scripts/Verify-RestApiSpecLocation.ps1 +++ b/eng/common/scripts/Verify-RestApiSpecLocation.ps1 @@ -210,7 +210,7 @@ function Verify-PackageVersion() { # Ignore the validation if the package is not GA version if ($version.IsPrerelease) { - Write-Host "ServiceDir:$ServiceDirectory, Package $($parsedPackage.PackageId) is marked with version $($parsedPackage.PackageVersion), the version is a prerelease version and the validation of spec location is ignored." + Write-Host "ServiceDir:$ServiceDirectory, Package $PackageName is marked with version $version, the version is a prerelease version and the validation of spec location is ignored." exit 0 } $continueValidation = $true