mirror of
https://github.com/kemko/nomad.git
synced 2026-01-06 18:35:44 +03:00
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:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user