diff options
| author | cdoern <cbdoer23@g.holycross.edu> | 2022-09-22 15:05:43 -0400 |
|---|---|---|
| committer | cdoern <cbdoer23@g.holycross.edu> | 2022-09-22 15:11:19 -0400 |
| commit | 2478e32ca334692dd18c4534c1f9b2a6a2c296cf (patch) | |
| tree | 047379d0d53d04eae29abf6228bb07eed0e2c4d4 /pkg/api/handlers/libpod | |
| parent | 08993516a939576fa009db6e7ed32524026a822d (diff) | |
| download | podman-2478e32ca334692dd18c4534c1f9b2a6a2c296cf.tar.gz podman-2478e32ca334692dd18c4534c1f9b2a6a2c296cf.tar.bz2 podman-2478e32ca334692dd18c4534c1f9b2a6a2c296cf.zip | |
fix restore API endpoint
restore endpoint was totally ignoring --pod, it was missing from the schema and from query handling
on the api handlers side. add support for it here.
resolves #15018
Signed-off-by: cdoern <cbdoer23@g.holycross.edu>
Diffstat (limited to 'pkg/api/handlers/libpod')
| -rw-r--r-- | pkg/api/handlers/libpod/containers.go | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/pkg/api/handlers/libpod/containers.go b/pkg/api/handlers/libpod/containers.go index 854740b17..9d18c9420 100644 --- a/pkg/api/handlers/libpod/containers.go +++ b/pkg/api/handlers/libpod/containers.go @@ -305,6 +305,7 @@ func Restore(w http.ResponseWriter, r *http.Request) { PrintStats bool `schema:"printStats"` FileLocks bool `schema:"fileLocks"` PublishPorts string `schema:"publishPorts"` + Pod string `schema:"pod"` }{ // override any golang type defaults } @@ -324,6 +325,7 @@ func Restore(w http.ResponseWriter, r *http.Request) { PrintStats: query.PrintStats, FileLocks: query.FileLocks, PublishPorts: strings.Fields(query.PublishPorts), + Pod: query.Pod, } var names []string |
