diff options
author | Sujil02 <sushah@redhat.com> | 2020-05-21 18:23:12 -0400 |
---|---|---|
committer | Sujil02 <sushah@redhat.com> | 2020-05-22 07:49:55 -0400 |
commit | a61f9fd54703c2e77ede4e0e1504f2e499eb5baf (patch) | |
tree | e60bccf54ec9b9615298db82f4687d5edd21849b /pkg/bindings/system | |
parent | 05a061282c02331425e1caceae80c6b44b7dc9ec (diff) | |
download | podman-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/bindings/system')
-rw-r--r-- | pkg/bindings/system/system.go | 13 |
1 files changed, 0 insertions, 13 deletions
diff --git a/pkg/bindings/system/system.go b/pkg/bindings/system/system.go index ed960b8e0..5348d0cfb 100644 --- a/pkg/bindings/system/system.go +++ b/pkg/bindings/system/system.go @@ -122,19 +122,6 @@ func Version(ctx context.Context) (*entities.SystemVersionReport, error) { return &report, err } -// Reset removes all unused system data. -func Reset(ctx context.Context) error { - conn, err := bindings.GetClient(ctx) - if err != nil { - return err - } - response, err := conn.DoRequest(nil, http.MethodPost, "/system/reset", nil) - if err != nil { - return err - } - return response.Process(response) -} - // DiskUsage returns information about image, container, and volume disk // consumption func DiskUsage(ctx context.Context) (*entities.SystemDfReport, error) { |