diff options
author | Miloslav Trmač <mitr@redhat.com> | 2018-07-25 04:24:43 +0200 |
---|---|---|
committer | Atomic Bot <atomic-devel@projectatomic.io> | 2018-07-26 20:47:31 +0000 |
commit | 2322f272c4ee9fb4f38aff2f6442b0d9f9ce1ad1 (patch) | |
tree | b05938e199e4293981621cfea995ac624618adfe /libpod/boltdb_state_unsupported.go | |
parent | eba6bf0018157e9594f43f1d2baeee3f56eb9cef (diff) | |
download | podman-2322f272c4ee9fb4f38aff2f6442b0d9f9ce1ad1.tar.gz podman-2322f272c4ee9fb4f38aff2f6442b0d9f9ce1ad1.tar.bz2 podman-2322f272c4ee9fb4f38aff2f6442b0d9f9ce1ad1.zip |
Use the Linux version BoltState.getContainerFromDB on all platforms.
This just muves the Linux implementation, unchanged, to the
platform-agnostic file. Should not change behavior on Linux.
On non-Linux platforms, reading containers from BoltDB now works
(and rejects containers with namespace data). The checkRuntimeConfig
validation ensures that each BoltDB database is only used on one platform,
so network namespaces should never exist in non-Linux BoltDB files.
Signed-off-by: Miloslav Trmač <mitr@redhat.com>
Closes: #1115
Approved by: rhatdan
Diffstat (limited to 'libpod/boltdb_state_unsupported.go')
-rw-r--r-- | libpod/boltdb_state_unsupported.go | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/libpod/boltdb_state_unsupported.go b/libpod/boltdb_state_unsupported.go index f6faaa378..960faa911 100644 --- a/libpod/boltdb_state_unsupported.go +++ b/libpod/boltdb_state_unsupported.go @@ -3,7 +3,6 @@ package libpod import ( - "github.com/boltdb/bolt" "github.com/sirupsen/logrus" ) @@ -16,7 +15,3 @@ func parseNetNSBoltData(ctr *Container, netNSBytes []byte) bool { } return true } - -func (s *BoltState) getContainerFromDB(id []byte, ctr *Container, ctrsBkt *bolt.Bucket) error { - return ErrNotImplemented -} |