diff options
author | baude <bbaude@redhat.com> | 2018-03-22 10:17:50 -0500 |
---|---|---|
committer | Atomic Bot <atomic-devel@projectatomic.io> | 2018-03-23 15:35:37 +0000 |
commit | f7c8dd5836002f3bf85a7bbe6c949cdece5194df (patch) | |
tree | 6cee5a91ff32b016efcf8e9dbcff398b42ce5c4a /libpod/diff.go | |
parent | 8ca3bcc85d6bbf05e7838b20bfb1ae74afa8d35d (diff) | |
download | podman-f7c8dd5836002f3bf85a7bbe6c949cdece5194df.tar.gz podman-f7c8dd5836002f3bf85a7bbe6c949cdece5194df.tar.bz2 podman-f7c8dd5836002f3bf85a7bbe6c949cdece5194df.zip |
Stage 4 Image cleanup
Cull funcs from runtime_img.go which are no longer needed. Also, fix any remaining
spots that use the old image technique.
Signed-off-by: baude <bbaude@redhat.com>
Closes: #532
Approved by: mheon
Diffstat (limited to 'libpod/diff.go')
-rw-r--r-- | libpod/diff.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libpod/diff.go b/libpod/diff.go index 3d95a8e41..6e07f3049 100644 --- a/libpod/diff.go +++ b/libpod/diff.go @@ -27,7 +27,7 @@ func (r *Runtime) GetDiff(from, to string) ([]archive.Change, error) { // If the id matches a layer, the top layer id is returned func (r *Runtime) getLayerID(id string) (string, error) { var toLayer string - toImage, err := r.GetImage(id) + toImage, err := r.imageRuntime.NewFromLocal(id) if err != nil { toCtr, err := r.store.Container(id) if err != nil { @@ -39,7 +39,7 @@ func (r *Runtime) getLayerID(id string) (string, error) { toLayer = toCtr.LayerID } } else { - toLayer = toImage.TopLayer + toLayer = toImage.TopLayer() } return toLayer, nil } |