diff options
author | Giuseppe Scrivano <gscrivan@redhat.com> | 2019-04-16 14:12:12 +0200 |
---|---|---|
committer | Giuseppe Scrivano <gscrivan@redhat.com> | 2019-04-26 22:23:49 +0200 |
commit | f49e0c19ede56b1cc6b1d44ea9ba8b336cd22658 (patch) | |
tree | 9a68b96d5f85adcc67189e97e1c788786c20b32c /libpod/runtime_migrate.go | |
parent | 525f0b30ac280565a1f98fd4208821a4984a7515 (diff) | |
download | podman-f49e0c19ede56b1cc6b1d44ea9ba8b336cd22658.tar.gz podman-f49e0c19ede56b1cc6b1d44ea9ba8b336cd22658.tar.bz2 podman-f49e0c19ede56b1cc6b1d44ea9ba8b336cd22658.zip |
runtime: pass down the context
Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com>
Diffstat (limited to 'libpod/runtime_migrate.go')
-rw-r--r-- | libpod/runtime_migrate.go | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/libpod/runtime_migrate.go b/libpod/runtime_migrate.go index 7d7fa108d..a084df289 100644 --- a/libpod/runtime_migrate.go +++ b/libpod/runtime_migrate.go @@ -1,7 +1,6 @@ package libpod import ( - "context" "path/filepath" "github.com/pkg/errors" @@ -39,7 +38,7 @@ func (r *Runtime) migrate() error { } for _, ctr := range runningContainers { - if err := ctr.Start(context.Background(), true); err != nil { + if err := ctr.Start(r.ctx, true); err != nil { logrus.Errorf("error restarting container %s", ctr.ID()) } } |