Skip to content

Commit

Permalink
Fix Bug in Resource Ref Verifier (#3758)
Browse files Browse the repository at this point in the history
Co-authored-by: Chidozie Ononiwu <[email protected]>
  • Loading branch information
azure-sdk and chidozieononiwu authored Jun 20, 2022
1 parent 5f575c3 commit 3174833
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion eng/common/scripts/Verify-Resource-Ref.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ foreach ($file in $ymlfiles)
$ymlContent = Get-Content $file.FullName -Raw
$ymlObject = ConvertFrom-Yaml $ymlContent -Ordered

if ($ymlObject.Contains("resources"))
if ($ymlObject -and ($ymlObject.Contains("resources")))
{
if ($ymlObject["resources"]["repositories"])
{
Expand Down

0 comments on commit 3174833

Please sign in to comment.