File tree Expand file tree Collapse file tree 1 file changed +5
-2
lines changed
src/Authentication/Authentication/custom Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -127,8 +127,11 @@ Function Find-MgGraphCommand {
127127 }
128128
129129 # Resolve legacy commands.
130- [array ]$ResolvedCommands = [Microsoft.Graph.PowerShell.Authentication.GraphSession ]::Instance.MgLegacyCommandMapping | Where-Object LegacyMapping -Contains $Command | Select-Object - ExpandProperty Command
131- if (! $ResolvedCommands ) {
130+ [array ]$ResolvedCommands = [Microsoft.Graph.PowerShell.Authentication.GraphSession ]::Instance.MgLegacyCommandMapping | Where-Object LegacyMapping -Contains $Command
131+ if ($ResolvedCommands ) {
132+ $ResolvedCommands = $ResolvedCommands.Command
133+ }
134+ else {
132135 $ResolvedCommands = $Command
133136 }
134137 Write-Debug " Resolved Command: $ResolvedCommands "
You can’t perform that action at this time.
0 commit comments