From 4136fd8eaa990b68c84bb1678e87b883ebd0dc60 Mon Sep 17 00:00:00 2001 From: Hakan Halil Date: Fri, 16 Dec 2022 10:28:45 +0200 Subject: [PATCH] fix: Pin the result limit of ssoadmin client to its MAX Closes: #3004 --- ssoadmin/client.go | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/ssoadmin/client.go b/ssoadmin/client.go index 6dc626f67..be3f75146 100644 --- a/ssoadmin/client.go +++ b/ssoadmin/client.go @@ -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. @@ -18,6 +18,7 @@ package ssoadmin import ( "context" + "math" "path" "reflect" "strings" @@ -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)