summaryrefslogtreecommitdiff
path: root/cmd/podman/exists.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/exists.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/exists.go')
-rw-r--r--cmd/podman/exists.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/cmd/podman/exists.go b/cmd/podman/exists.go
index bd1bc24ec..e6d2c8a11 100644
--- a/cmd/podman/exists.go
+++ b/cmd/podman/exists.go
@@ -67,12 +67,12 @@ func imageExistsCmd(c *cli.Context) error {
if len(args) > 1 || len(args) < 1 {
return errors.New("you may only check for the existence of one image at a time")
}
- 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)
- if _, err := localRuntime.NewImageFromLocal(args[0]); err != nil {
+ defer runtime.Runtime.Shutdown(false)
+ if _, err := runtime.NewImageFromLocal(args[0]); err != nil {
//TODO we need to ask about having varlink defined errors exposed
//so we can reuse them
if errors.Cause(err) == image.ErrNoSuchImage || err.Error() == "io.podman.ImageNotFound" {