summaryrefslogtreecommitdiff
path: root/pkg/api/handlers
diff options
context:
space:
mode:
authorKarthik Elango <kelango@redhat.com>2022-06-28 15:31:20 -0400
committerMatthew Heon <matthew.heon@pm.me>2022-07-26 13:25:36 -0400
commit6d84a9952f1e5be1a187bcc6d9bbc2532331cfc8 (patch)
tree4219ba61a3cf8920dcde4fa1fe715ddd319932ab /pkg/api/handlers
parenta78be890ee0098c6a6809b562c4806da8fe344b5 (diff)
downloadpodman-6d84a9952f1e5be1a187bcc6d9bbc2532331cfc8.tar.gz
podman-6d84a9952f1e5be1a187bcc6d9bbc2532331cfc8.tar.bz2
podman-6d84a9952f1e5be1a187bcc6d9bbc2532331cfc8.zip
Podman stop --filter flag
Filter flag is added for podman stop and podman --remote stop. Filtering logic is implemented in getContainersAndInputByContext(). Start filtering can be manipulated to use this logic as well to limit redundancy. Signed-off-by: Karthik Elango <kelango@redhat.com>
Diffstat (limited to 'pkg/api/handlers')
-rw-r--r--pkg/api/handlers/compat/containers_stop.go2
1 files changed, 0 insertions, 2 deletions
diff --git a/pkg/api/handlers/compat/containers_stop.go b/pkg/api/handlers/compat/containers_stop.go
index 33bb3a679..c9a27dd83 100644
--- a/pkg/api/handlers/compat/containers_stop.go
+++ b/pkg/api/handlers/compat/containers_stop.go
@@ -33,9 +33,7 @@ func StopContainer(w http.ResponseWriter, r *http.Request) {
utils.Error(w, http.StatusBadRequest, fmt.Errorf("failed to parse parameters for %s: %w", r.URL.String(), err))
return
}
-
name := utils.GetName(r)
-
options := entities.StopOptions{
Ignore: query.Ignore,
}