summaryrefslogtreecommitdiff
path: root/cmd/podman/pull.go
diff options
context:
space:
mode:
authorbaude <bbaude@redhat.com>2019-01-15 09:56:50 -0600
committerbaude <bbaude@redhat.com>2019-01-15 09:56:50 -0600
commit61ca8e548762dce827f3a26d593db66d14793677 (patch)
tree6d06b5d753e124e6e69eb23c0d7eda6e373dd4b6 /cmd/podman/pull.go
parent077156d45cfea915cc249e92a5a45280e5ed71e1 (diff)
downloadpodman-61ca8e548762dce827f3a26d593db66d14793677.tar.gz
podman-61ca8e548762dce827f3a26d593db66d14793677.tar.bz2
podman-61ca8e548762dce827f3a26d593db66d14793677.zip
Rename localRuntime to runtime in cmd/podman
Signed-off-by: baude <bbaude@redhat.com>
Diffstat (limited to 'cmd/podman/pull.go')
-rw-r--r--cmd/podman/pull.go8
1 files changed, 4 insertions, 4 deletions
diff --git a/cmd/podman/pull.go b/cmd/podman/pull.go
index 78b28e36e..d81457c67 100644
--- a/cmd/podman/pull.go
+++ b/cmd/podman/pull.go
@@ -64,11 +64,11 @@ specified, the image with the 'latest' tag (if it exists) is pulled
// pullCmd gets the data from the command line and calls pullImage
// to copy an image from a registry to a local machine
func pullCmd(c *cli.Context) error {
- localRuntime, err := adapter.GetRuntime(c)
+ runtime, err := adapter.GetRuntime(c)
if err != nil {
return errors.Wrapf(err, "could not get runtime")
}
- defer localRuntime.Runtime.Shutdown(false)
+ defer runtime.Runtime.Shutdown(false)
args := c.Args()
if len(args) == 0 {
@@ -116,14 +116,14 @@ func pullCmd(c *cli.Context) error {
if err != nil {
return errors.Wrapf(err, "error parsing %q", image)
}
- newImage, err := localRuntime.LoadFromArchiveReference(getContext(), srcRef, c.String("signature-policy"), writer)
+ newImage, err := runtime.LoadFromArchiveReference(getContext(), srcRef, c.String("signature-policy"), writer)
if err != nil {
return errors.Wrapf(err, "error pulling image from %q", image)
}
imgID = newImage[0].ID()
} else {
authfile := getAuthFile(c.String("authfile"))
- newImage, err := localRuntime.New(getContext(), image, c.String("signature-policy"), authfile, writer, &dockerRegistryOptions, image2.SigningOptions{}, true)
+ newImage, err := runtime.New(getContext(), image, c.String("signature-policy"), authfile, writer, &dockerRegistryOptions, image2.SigningOptions{}, true)
if err != nil {
return errors.Wrapf(err, "error pulling image %q", image)
}