diff options
author | Matthew Heon <matthew.heon@pm.me> | 2019-05-01 15:07:30 -0400 |
---|---|---|
committer | Matthew Heon <matthew.heon@pm.me> | 2019-05-01 15:07:30 -0400 |
commit | 416cc20c6800d9c315a689a4c425af23f89864e4 (patch) | |
tree | 7b74ab967c06a665a4c22eadd4e8500fd1eaf764 /libpod/runtime_migrate.go | |
parent | 7d05ff3fc772a7be4860ed4a3cd59a62f8bb893a (diff) | |
download | podman-416cc20c6800d9c315a689a4c425af23f89864e4.tar.gz podman-416cc20c6800d9c315a689a4c425af23f89864e4.tar.bz2 podman-416cc20c6800d9c315a689a4c425af23f89864e4.zip |
Small fixes for #2950
We merged #2950 with some nits still remaining, as Giuseppe was
going on PTO. This addresses those small requested changes.
Signed-off-by: Matthew Heon <matthew.heon@pm.me>
Diffstat (limited to 'libpod/runtime_migrate.go')
-rw-r--r-- | libpod/runtime_migrate.go | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/libpod/runtime_migrate.go b/libpod/runtime_migrate.go index a084df289..0bb8e952f 100644 --- a/libpod/runtime_migrate.go +++ b/libpod/runtime_migrate.go @@ -1,13 +1,14 @@ package libpod import ( + "context" "path/filepath" "github.com/pkg/errors" "github.com/sirupsen/logrus" ) -func (r *Runtime) migrate() error { +func (r *Runtime) migrate(ctx context.Context) error { runningContainers, err := r.GetRunningContainers() if err != nil { return err @@ -38,7 +39,7 @@ func (r *Runtime) migrate() error { } for _, ctr := range runningContainers { - if err := ctr.Start(r.ctx, true); err != nil { + if err := ctr.Start(ctx, true); err != nil { logrus.Errorf("error restarting container %s", ctr.ID()) } } |