Fix Bug in Resource Ref Verifier (#3758)
Co-authored-by: Chidozie Ononiwu <chononiw@microsoft.com>
This commit is contained in:
parent
5f575c32fa
commit
3174833951
@ -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"])
|
||||
{
|
||||
|
||||
Loading…
Reference in New Issue
Block a user