summaryrefslogtreecommitdiff
path: root/libpod/image
diff options
context:
space:
mode:
authorMiloslav Trmač <mitr@redhat.com>2020-02-07 00:50:09 +0100
committerMiloslav Trmač <mitr@redhat.com>2020-02-07 23:36:00 +0100
commit0f0bac4ab31f06403a567d9f28ee4ef69cfe94ca (patch)
tree56fb2c850980217e17871b14f1b5a1a03f0e4a15 /libpod/image
parentc02b3b5e139de90f7e03a5b08b5c49add8107380 (diff)
downloadpodman-0f0bac4ab31f06403a567d9f28ee4ef69cfe94ca.tar.gz
podman-0f0bac4ab31f06403a567d9f28ee4ef69cfe94ca.tar.bz2
podman-0f0bac4ab31f06403a567d9f28ee4ef69cfe94ca.zip
Call NewImageRuntimeFromStore from NewImageRuntimeFromOptions
... so that there ultimately is only one constructor. Should not change behavior. Signed-off-by: Miloslav Trmač <mitr@redhat.com>
Diffstat (limited to 'libpod/image')
-rw-r--r--libpod/image/image.go5
1 files changed, 1 insertions, 4 deletions
diff --git a/libpod/image/image.go b/libpod/image/image.go
index ba1080a71..f773ab74a 100644
--- a/libpod/image/image.go
+++ b/libpod/image/image.go
@@ -99,10 +99,7 @@ func NewImageRuntimeFromOptions(options storage.StoreOptions) (*Runtime, error)
if err != nil {
return nil, err
}
-
- return &Runtime{
- store: store,
- }, nil
+ return NewImageRuntimeFromStore(store), nil
}
func setStore(options storage.StoreOptions) (storage.Store, error) {