Skip to content

Commit dbaf847

Browse files
authored
Merge pull request #99 from number213/canonical
Fix incorrect output of Get-Location when using UseCanonical
2 parents 84adc2e + 6ead905 commit dbaf847

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)