Skip to content

Commit

Permalink
fix: Pin the result limit of ssoadmin client to its MAX
Browse files Browse the repository at this point in the history
Closes: #3004
  • Loading branch information
HakanSunay authored and dougm committed Feb 1, 2023
1 parent 76a194e commit 4136fd8
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions ssoadmin/client.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
Copyright (c) 2018 VMware, Inc. All Rights Reserved.
Copyright (c) 2018-2022 VMware, Inc. All Rights Reserved.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
Expand All @@ -18,6 +18,7 @@ package ssoadmin

import (
"context"
"math"
"path"
"reflect"
"strings"
Expand Down Expand Up @@ -82,7 +83,7 @@ func NewClient(ctx context.Context, c *vim25.Client) (*Client, error) {
Client: sc,
RoundTripper: sc,
Domain: "vsphere.local", // Default
Limit: 100,
Limit: math.MaxInt32,
}
if url != Path {
admin.Domain = path.Base(url)
Expand Down

0 comments on commit 4136fd8

Please sign in to comment.