CSI: fix decoding error on snapshot create

Consumers of the CSI HTTP API are expecting a response object and not a slice
of snapshots. Fix the return value.
This commit is contained in:
Tim Gross
2021-04-07 08:44:12 -04:00
committed by Tim Gross
parent 32fb81dd25
commit 6a5fe39c80
4 changed files with 6 additions and 6 deletions

View File

@@ -292,7 +292,7 @@ func (s *HTTPServer) csiSnapshotCreate(resp http.ResponseWriter, req *http.Reque
}
setMeta(resp, &out.QueryMeta)
return out.Snapshots, nil
return out, nil
}
func (s *HTTPServer) csiSnapshotDelete(resp http.ResponseWriter, req *http.Request) (interface{}, error) {