From 701f0112e80fc26e53e098578d4a76292cc24afe Mon Sep 17 00:00:00 2001 From: Rahul Gupta <rahul.gupta@netapp.com> Date: Thu, 17 Nov 2022 18:52:19 +0530 Subject: [PATCH] fix: 7mode shelf plugin fix --- cmd/collectors/zapi/plugins/shelf/shelf.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/cmd/collectors/zapi/plugins/shelf/shelf.go b/cmd/collectors/zapi/plugins/shelf/shelf.go index bae39d92a..168684b74 100644 --- a/cmd/collectors/zapi/plugins/shelf/shelf.go +++ b/cmd/collectors/zapi/plugins/shelf/shelf.go @@ -175,7 +175,9 @@ func (my *Shelf) Run(data *matrix.Matrix) ([]*matrix.Matrix, error) { } request := node.NewXMLS(my.query) - request.NewChildS("max-records", my.batchSize) + if my.client.IsClustered() { + request.NewChildS("max-records", my.batchSize) + } result, err := my.client.InvokeZapiCall(request) if err != nil {