aboutsummaryrefslogtreecommitdiff
path: root/cmd/podman/images.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/images.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/images.go')
-rw-r--r--cmd/podman/images.go10
1 files changed, 5 insertions, 5 deletions
diff --git a/cmd/podman/images.go b/cmd/podman/images.go
index 8b8ce78bd..2b4187a9a 100644
--- a/cmd/podman/images.go
+++ b/cmd/podman/images.go
@@ -152,13 +152,13 @@ func imagesCmd(c *cli.Context) error {
return err
}
- 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)
if len(c.Args()) == 1 {
- newImage, err = localRuntime.NewImageFromLocal(c.Args().Get(0))
+ newImage, err = runtime.NewImageFromLocal(c.Args().Get(0))
if err != nil {
return err
}
@@ -171,7 +171,7 @@ func imagesCmd(c *cli.Context) error {
ctx := getContext()
if len(c.StringSlice("filter")) > 0 || newImage != nil {
- filterFuncs, err = CreateFilterFuncs(ctx, localRuntime, c, newImage)
+ filterFuncs, err = CreateFilterFuncs(ctx, runtime, c, newImage)
if err != nil {
return err
}
@@ -195,7 +195,7 @@ func imagesCmd(c *cli.Context) error {
children to the image once built. until buildah supports caching builds,
it will not generate these intermediate images.
*/
- images, err := localRuntime.GetImages()
+ images, err := runtime.GetImages()
if err != nil {
return errors.Wrapf(err, "unable to get images")
}