Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
ckairen authored and azure-sdk committed Oct 20, 2022
1 parent d83cfff commit bb27b29
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion eng/common/scripts/job-matrix/job-matrix-functions.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@ function ProcessNonSparseParameters(

function FilterMatrixDisplayName([array]$matrix, [string]$filter) {
return $matrix | Where-Object { $_ } | ForEach-Object {
if ($_.Name -match $filter) {
if ($_.ContainsKey("Name") -and $_.Name -match $filter) {
return $_
}
}
Expand Down

0 comments on commit bb27b29

Please sign in to comment.