From 329c7268be290c92218d5cc050776fe78fd534d8 Mon Sep 17 00:00:00 2001 From: Chidozie Ononiwu Date: Wed, 15 Jun 2022 17:45:36 -0700 Subject: [PATCH] Fix Bug in Resource Ref Verifier --- eng/common/scripts/Verify-Resource-Ref.ps1 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/eng/common/scripts/Verify-Resource-Ref.ps1 b/eng/common/scripts/Verify-Resource-Ref.ps1 index 048f91c3af..2800b1833c 100644 --- a/eng/common/scripts/Verify-Resource-Ref.ps1 +++ b/eng/common/scripts/Verify-Resource-Ref.ps1 @@ -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"]) {