summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com>2020-01-29 07:23:32 -0800
committerGitHub <noreply@github.com>2020-01-29 07:23:32 -0800
commit955866c97da3007be20a6812eb8afa48e9833d23 (patch)
treebe100998e60126fbf283d2e36c5ac77425672dfa
parent8241c1ae940996ff086f67cff655b202b6092699 (diff)
parentc9fb6d16683bd8f75d74fe9df74386b23df29525 (diff)
downloadpodman-955866c97da3007be20a6812eb8afa48e9833d23.tar.gz
podman-955866c97da3007be20a6812eb8afa48e9833d23.tar.bz2
podman-955866c97da3007be20a6812eb8afa48e9833d23.zip
Merge pull request #5013 from vrothberg/fix-4916
history: fix size computing
-rw-r--r--libpod/image/image.go3
1 files changed, 2 insertions, 1 deletions
diff --git a/libpod/image/image.go b/libpod/image/image.go
index 7ee8c45d7..355249b12 100644
--- a/libpod/image/image.go
+++ b/libpod/image/image.go
@@ -831,7 +831,8 @@ func (i *Image) History(ctx context.Context) ([]*History, error) {
id := "<missing>"
if x == numHistories {
id = i.ID()
- } else if layer != nil {
+ }
+ if layer != nil {
if !oci.History[x].EmptyLayer {
size = layer.UncompressedSize
}