From b8bc89ccdc615e31e961536474795ab415a37693 Mon Sep 17 00:00:00 2001 From: Praven Kuttappan <55455725+praveenkuttappan@users.noreply.github.com> Date: Tue, 2 Apr 2024 11:47:16 -0400 Subject: [PATCH] Fix API review for Python due to missing code file (#35037) --- eng/scripts/Language-Settings.ps1 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/eng/scripts/Language-Settings.ps1 b/eng/scripts/Language-Settings.ps1 index 194cc63831f4..9f9d239c2e20 100644 --- a/eng/scripts/Language-Settings.ps1 +++ b/eng/scripts/Language-Settings.ps1 @@ -542,10 +542,10 @@ function Find-python-Artifacts-For-Apireview($artifactDir, $artifactName) # Python requires pregenerated token file in addition to wheel to generate API review. # Make sure that token file exists in same path as wheel file. - $tokenFile = Join-Path -Path $whlDirectory -ChildPath "${packageName}_Python.json" + $tokenFile = Join-Path -Path $whlDirectory -ChildPath "${packageName}_${Language}.json" if (!(Test-Path $tokenFile)) { - Write-Host "API review token file for $($artifactName) does not exist in path $($whlDirectory). Skipping API review for $packageName" + Write-Host "API review token file for $($tokenFile) does not exist in path $($whlDirectory). Skipping API review for $packageName" return $null } else