From a61f9fd54703c2e77ede4e0e1504f2e499eb5baf Mon Sep 17 00:00:00 2001 From: Sujil02 Date: Thu, 21 May 2020 18:23:12 -0400 Subject: Removes remote system reset functionality. skip e2e test for remote. As system reset too dangerous for remote use, deleting the functionality and the test case. Signed-off-by: Sujil02 --- pkg/api/handlers/libpod/system.go | 10 ---------- 1 file changed, 10 deletions(-) (limited to 'pkg/api/handlers/libpod') diff --git a/pkg/api/handlers/libpod/system.go b/pkg/api/handlers/libpod/system.go index 81ed37b4a..f575546c9 100644 --- a/pkg/api/handlers/libpod/system.go +++ b/pkg/api/handlers/libpod/system.go @@ -71,16 +71,6 @@ func SystemPrune(w http.ResponseWriter, r *http.Request) { utils.WriteResponse(w, http.StatusOK, systemPruneReport) } -// SystemReset Resets podman storage back to default state -func SystemReset(w http.ResponseWriter, r *http.Request) { - err := r.Context().Value("runtime").(*libpod.Runtime).Reset(r.Context()) - if err != nil { - utils.InternalServerError(w, err) - return - } - utils.WriteResponse(w, http.StatusOK, nil) -} - func DiskUsage(w http.ResponseWriter, r *http.Request) { // Options are only used by the CLI options := entities.SystemDfOptions{} -- cgit v1.2.3-54-g00ecf