Skip to content

Commit

Permalink
return as stdout
Browse files Browse the repository at this point in the history
Signed-off-by: Grant Linville <[email protected]>
  • Loading branch information
g-linville committed Oct 10, 2024
1 parent acc2dc8 commit 9d50b05
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions pkg/sdkserver/datasets.go
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ func (s *server) listDatasets(w http.ResponseWriter, r *http.Request) {
return
}

writeResponse(logger, w, result)
writeResponse(logger, w, map[string]any{"stdout": result})
}

type createDatasetArgs struct {
Expand Down Expand Up @@ -135,7 +135,7 @@ func (s *server) createDataset(w http.ResponseWriter, r *http.Request) {
return
}

writeResponse(logger, w, result)
writeResponse(logger, w, map[string]any{"stdout": result})
}

type addDatasetElementArgs struct {
Expand Down Expand Up @@ -203,7 +203,7 @@ func (s *server) addDatasetElement(w http.ResponseWriter, r *http.Request) {
return
}

writeResponse(logger, w, result)
writeResponse(logger, w, map[string]any{"stdout": result})
}

type listDatasetElementsArgs struct {
Expand Down Expand Up @@ -262,7 +262,7 @@ func (s *server) listDatasetElements(w http.ResponseWriter, r *http.Request) {
return
}

writeResponse(logger, w, result)
writeResponse(logger, w, map[string]any{"stdout": result})
}

type getDatasetElementArgs struct {
Expand Down Expand Up @@ -325,5 +325,5 @@ func (s *server) getDatasetElement(w http.ResponseWriter, r *http.Request) {
return
}

writeResponse(logger, w, result)
writeResponse(logger, w, map[string]any{"stdout": result})
}

0 comments on commit 9d50b05

Please sign in to comment.