From 7fb86fe4d0423cddb7735c17e51d6f3918cc36b9 Mon Sep 17 00:00:00 2001 From: Tim Gross Date: Wed, 7 Apr 2021 09:46:38 -0400 Subject: [PATCH] CSI: fix wrong output struct for snapshot list endpoint --- command/agent/csi_endpoint.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/command/agent/csi_endpoint.go b/command/agent/csi_endpoint.go index c7375ee9a..9184bfe07 100644 --- a/command/agent/csi_endpoint.go +++ b/command/agent/csi_endpoint.go @@ -340,7 +340,7 @@ func (s *HTTPServer) csiSnapshotList(resp http.ResponseWriter, req *http.Request } setMeta(resp, &out.QueryMeta) - return out.Snapshots, nil + return out, nil } // CSIPluginsRequest lists CSI plugins