summaryrefslogtreecommitdiff
path: root/pkg/api/handlers/libpod
diff options
context:
space:
mode:
authorSujil02 <sushah@redhat.com>2020-05-21 18:23:12 -0400
committerSujil02 <sushah@redhat.com>2020-05-22 07:49:55 -0400
commita61f9fd54703c2e77ede4e0e1504f2e499eb5baf (patch)
treee60bccf54ec9b9615298db82f4687d5edd21849b /pkg/api/handlers/libpod
parent05a061282c02331425e1caceae80c6b44b7dc9ec (diff)
downloadpodman-a61f9fd54703c2e77ede4e0e1504f2e499eb5baf.tar.gz
podman-a61f9fd54703c2e77ede4e0e1504f2e499eb5baf.tar.bz2
podman-a61f9fd54703c2e77ede4e0e1504f2e499eb5baf.zip
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 <sushah@redhat.com>
Diffstat (limited to 'pkg/api/handlers/libpod')
-rw-r--r--pkg/api/handlers/libpod/system.go10
1 files changed, 0 insertions, 10 deletions
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{}