Skip to content

Commit 2d98dc9

Browse files
author
Namrata Jagasia
committed
Fix top value when max is not provided
1 parent 6727874 commit 2d98dc9

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

src/PolicyInsights/PolicyInsights/ChangeLog.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,9 @@
1919
-->
2020
## Upcoming Release
2121

22+
## Version 1.4.1
23+
* Undo bug with version 1.4.0
24+
2225
## Version 1.4.0
2326
* Added support for returning paginated results for Get-AzPolicyState
2427

src/PolicyInsights/PolicyInsights/Cmdlets/GetAzureRmPolicyState.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,7 @@ public override void Execute()
160160
{
161161
var queryOptions = new RestApiModels.QueryOptions
162162
{
163-
Top = MyInvocation.BoundParameters.ContainsKey("Top") ? (int?)Top : int.MaxValue,
163+
Top = MyInvocation.BoundParameters.ContainsKey("Top") ? (int?)Top : null,
164164
OrderBy = OrderBy,
165165
Select = Select,
166166
FromProperty = MyInvocation.BoundParameters.ContainsKey("From") ? (DateTime?)From : null,

0 commit comments

Comments
 (0)