Skip to content

Commit

Permalink
Merge pull request #4 from Readify/sideload
Browse files Browse the repository at this point in the history
Only auto-expand returned entities if not side-loading.
  • Loading branch information
kjacobsen authored Feb 5, 2020
2 parents 8dbcb4e + 986e992 commit 3a6e2ba
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 4 deletions.
4 changes: 3 additions & 1 deletion functions/Get-Group.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,8 @@ function Get-Group {
}

$result = Invoke-Method @params
$result | Select-Object -Expand $key

if (-not $PSBoundParameters.ContainsKey('SideLoad')) {
$result | Select-Object -Expand $key
}
}
4 changes: 3 additions & 1 deletion functions/Get-GroupMembership.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,8 @@ function Get-GroupMembership {
}

$result = Invoke-Method @params
$result | Select-Object -Expand $key

if (-not $PSBoundParameters.ContainsKey('SideLoad')) {
$result | Select-Object -Expand $key
}
}
4 changes: 3 additions & 1 deletion functions/Get-Ticket.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,9 @@ function Get-Ticket {
}

$result = Invoke-Method @params
$result | Select-Object -Expand $key

if (-not $PSBoundParameters.ContainsKey('SideLoad')) {
$result | Select-Object -Expand $key
}
}

4 changes: 3 additions & 1 deletion functions/Get-User.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -137,6 +137,8 @@ function Get-User {
}

$result = Invoke-Method @params
$result | Select-Object -Expand $key

if (-not $PSBoundParameters.ContainsKey('SideLoad')) {
$result | Select-Object -Expand $key
}
}

0 comments on commit 3a6e2ba

Please sign in to comment.