Skip to content

Commit

Permalink
Updates for feedback
Browse files Browse the repository at this point in the history
  • Loading branch information
JimSuplizio authored and azure-sdk committed Jun 11, 2024
1 parent 2a83a82 commit d5c9389
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion eng/common/scripts/Helpers/DevOps-WorkItem-Helpers.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ function Get-DevOpsRestHeaders()
$headerAccessToken = (az account get-access-token --resource "499b84ac-1321-427f-aa17-267ca6975798" --query "accessToken" --output tsv)

if ([System.String]::IsNullOrEmpty($headerAccessToken)) {
throw "Unable to create the DevOpsRestHeader due to access token being null or empy. The calling script needs to be pass an the accessToken value OR the calling script needs to be run in an azure authenticated environment."
throw "Unable to create the DevOpsRestHeader due to access token being null or empty. The caller needs to be logged in with az login to an account with enough permissions to edit work items in the azure-sdk Release team project."
}

$headers = @{ Authorization = "Bearer $headerAccessToken" }
Expand Down
4 changes: 2 additions & 2 deletions eng/common/scripts/Validate-Package.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,8 @@ Set-StrictMode -Version 3

az account show *> $null
if (!$?) {
Write-Host 'Running az login...'
az login *> $null
Write-Host 'Running az login...'
az login *> $null
}

az extension show -n azure-devops *> $null
Expand Down

0 comments on commit d5c9389

Please sign in to comment.