Skip to content

Commit

Permalink
Merge dev
Browse files Browse the repository at this point in the history
  • Loading branch information
peombwa committed Sep 10, 2021
1 parent ded3445 commit 857f9b4
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,8 @@ protected override void ProcessRecord()
.Distinct();

output = aliases.DefaultIfEmpty("''").ToArray();
} else
}
else
{
var names = functionInfos.Select(fi => fi.Name).Distinct();
output = names.DefaultIfEmpty("''").ToArray();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
# Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information.
# ------------------------------------------------------------------------------

Set-StrictMode -Version 6.0
Set-StrictMode -Version 2

. "$psscriptroot/common/Permissions.ps1"

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
# Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information.
# ------------------------------------------------------------------------------

Set-StrictMode -Version 6.0
Set-StrictMode -Version 2

$Permissions_msGraphApplicationId = '00000003-0000-0000-c000-000000000000'

Expand Down Expand Up @@ -34,7 +34,7 @@ function Permissions_GetPermissionsData([bool] $online) {
# Make a REST request to MS Graph to get the permissions data from the Microsoft Graph service principal
if ( $online -or ! $_permissions.msGraphServicePrincipal -or ! $_permissions.isFromInvokeMgGraphRequest ) {
try {
$restResult = Invoke-MgGraphRequest -method GET $_permissions.msGraphPermissionsRequestUri
$restResult = Invoke-MgGraphRequest -method GET -OutputType PSObject $_permissions.msGraphPermissionsRequestUri

if ( $restResult ) {
$_permissions.msGraphServicePrincipal = $restResult | Select-Object -ExpandProperty value
Expand Down

0 comments on commit 857f9b4

Please sign in to comment.