summaryrefslogtreecommitdiff
path: root/cmd/kpod/load.go
diff options
context:
space:
mode:
Diffstat (limited to 'cmd/kpod/load.go')
-rw-r--r--cmd/kpod/load.go9
1 files changed, 6 insertions, 3 deletions
diff --git a/cmd/kpod/load.go b/cmd/kpod/load.go
index 31975fc76..d29da0c06 100644
--- a/cmd/kpod/load.go
+++ b/cmd/kpod/load.go
@@ -1,6 +1,7 @@
package main
import (
+ "fmt"
"io"
"io/ioutil"
"os"
@@ -101,16 +102,18 @@ func loadCmd(c *cli.Context) error {
}
src := libpod.DockerArchive + ":" + input
- if err := runtime.PullImage(src, options); err != nil {
+ imgName, err := runtime.PullImage(src, options)
+ if err != nil {
src = libpod.OCIArchive + ":" + input
// generate full src name with specified image:tag
if image != "" {
src = src + ":" + image
}
- if err := runtime.PullImage(src, options); err != nil {
+ imgName, err = runtime.PullImage(src, options)
+ if err != nil {
return errors.Wrapf(err, "error pulling %q", src)
}
}
-
+ fmt.Println("Loaded image: ", imgName)
return nil
}