Skip to content

Commit 6afb9f6

Browse files
authored
Merge pull request #111 from PureStorage-OpenConnect/108-scrape-errors-for-the-objectstore-metrics-path-also-affects-array-for-the-older-versions
Add a filter to not query destroyed buckets in GET /buckets
2 parents 9279020 + 4f85f9a commit 6afb9f6

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

internal/rest-client/buckets.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,7 @@ func (fb *FBClient) GetBuckets() *BucketsList {
4848
result := new(BucketsList)
4949
res, _ := fb.RestClient.R().
5050
SetResult(&result).
51+
SetQueryParam("destroyed", "false").
5152
Get(uri)
5253
if res.StatusCode() == 401 {
5354
fb.RefreshSession()

0 commit comments

Comments
 (0)