summaryrefslogtreecommitdiff
path: root/libpod/boltdb_state_internal.go
diff options
context:
space:
mode:
authorOpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com>2019-10-16 11:05:45 +0200
committerGitHub <noreply@github.com>2019-10-16 11:05:45 +0200
commit8172460f2a09910d611d2d61655fb3682caca09f (patch)
tree8569cfb4c571e215d0323614da7be563b3cfa6f6 /libpod/boltdb_state_internal.go
parent7b54aeb6e3dca3511daa1e511625f7e446fbc710 (diff)
parentcab7bfbb211f2496af9f86208588e26954fc9b2a (diff)
downloadpodman-8172460f2a09910d611d2d61655fb3682caca09f.tar.gz
podman-8172460f2a09910d611d2d61655fb3682caca09f.tar.bz2
podman-8172460f2a09910d611d2d61655fb3682caca09f.zip
Merge pull request #4273 from mheon/no_runtime
Add a MissingRuntime implementation
Diffstat (limited to 'libpod/boltdb_state_internal.go')
-rw-r--r--libpod/boltdb_state_internal.go6
1 files changed, 5 insertions, 1 deletions
diff --git a/libpod/boltdb_state_internal.go b/libpod/boltdb_state_internal.go
index ed87373e9..3347a3648 100644
--- a/libpod/boltdb_state_internal.go
+++ b/libpod/boltdb_state_internal.go
@@ -396,7 +396,11 @@ func (s *BoltState) getContainerFromDB(id []byte, ctr *Container, ctrsBkt *bolt.
ociRuntime, ok := s.runtime.ociRuntimes[runtimeName]
if !ok {
- return errors.Wrapf(define.ErrOCIRuntimeUnavailable, "cannot find OCI runtime %q for container %s", ctr.config.OCIRuntime, ctr.ID())
+ // Use a MissingRuntime implementation
+ ociRuntime, err = getMissingRuntime(runtimeName, s.runtime)
+ if err != nil {
+ return err
+ }
}
ctr.ociRuntime = ociRuntime
}