Skip to content
This repository has been archived by the owner on Feb 22, 2022. It is now read-only.

Commit

Permalink
!Deploy!
Browse files Browse the repository at this point in the history
  • Loading branch information
Gary Smith committed Jul 30, 2021
1 parent 7196736 commit d5420e6
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ Format as below (Requires the '### Added' as a header or task fails)
...- Update ReadMe.MD

## [Unreleased]
### Added
- Get-InsightFullObjectType changed page size from 0 to 1 for when there are no results

## [1.20] - 2021-06-24
### Added
Expand Down
2 changes: 1 addition & 1 deletion JSM.Insight/Public/Get-InsightFullObjectType.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ function Get-InsightFullObjectType {
Write-PSFMessage -Level Host -Message "Preforming 'Find-InsightObject' on page: $page" -Tag 'Get-InsightFullObjectType'
$results = Find-InsightObject -objectSchemaId $ObjectSchema.id -objectTypeId $e.objectType.id -resultsPerPage 2000 -page $page -IQL ${objectType = "$ObjectTypeName"} -includeAttributes $true
$objs += $results.objectEntries
} until ( ( $page -eq $results.pageSize ) -or ( $results.pageSize -eq 0 ) )
} until ( ( $page -eq $results.pageSize ) -or ( $results.pageSize -eq 1 ) )
$e.objects = $objs
$e.name = $e.objectType.name
$JSMObjects += $e
Expand Down

0 comments on commit d5420e6

Please sign in to comment.