Skip to content

Commit 5844843

Browse files
committed
Merge branch 'az-accounts' of https://github.com/MiYanni/azure-powershell-common into az-accounts
2 parents a2d2bd5 + 72e1ec3 commit 5844843

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/ScenarioTest.ResourceManager/Common.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -603,7 +603,7 @@ function Get-Location
603603
}
604604
}
605605
$locations = $resourceTypes.Locations
606-
if($UseCanonical)
606+
if($UseCanonical -and $locations -ne $null)
607607
{
608608
$locations = $locations | ForEach-Object { Normalize-Location $_ }
609609
}

0 commit comments

Comments
 (0)