summaryrefslogtreecommitdiff
path: root/cmd/podman/pull.go
diff options
context:
space:
mode:
authorbaude <bbaude@redhat.com>2019-01-15 14:44:46 -0600
committerbaude <bbaude@redhat.com>2019-01-15 16:01:25 -0600
commite68f03ae45adbaa539c7470aa5f99dc870c185dc (patch)
tree186737d7a6578d48496a25233831bc7465381e57 /cmd/podman/pull.go
parent341f91da480bbf337dfb13107389307835b1f0c3 (diff)
downloadpodman-e68f03ae45adbaa539c7470aa5f99dc870c185dc.tar.gz
podman-e68f03ae45adbaa539c7470aa5f99dc870c185dc.tar.bz2
podman-e68f03ae45adbaa539c7470aa5f99dc870c185dc.zip
Embed runtime struct in super localRuntime
We clean up the code by eliminating stuttering references when we embed the runtime struct into localRuntime. Makes for less change in the future as well. ++ jhonce Signed-off-by: baude <bbaude@redhat.com>
Diffstat (limited to 'cmd/podman/pull.go')
-rw-r--r--cmd/podman/pull.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/cmd/podman/pull.go b/cmd/podman/pull.go
index d81457c67..2a78d0c54 100644
--- a/cmd/podman/pull.go
+++ b/cmd/podman/pull.go
@@ -2,7 +2,6 @@ package main
import (
"fmt"
- "github.com/containers/libpod/libpod/adapter"
"io"
"os"
"strings"
@@ -10,6 +9,7 @@ import (
dockerarchive "github.com/containers/image/docker/archive"
"github.com/containers/image/transports/alltransports"
"github.com/containers/image/types"
+ "github.com/containers/libpod/libpod/adapter"
image2 "github.com/containers/libpod/libpod/image"
"github.com/containers/libpod/pkg/util"
"github.com/pkg/errors"
@@ -68,7 +68,7 @@ func pullCmd(c *cli.Context) error {
if err != nil {
return errors.Wrapf(err, "could not get runtime")
}
- defer runtime.Runtime.Shutdown(false)
+ defer runtime.Shutdown(false)
args := c.Args()
if len(args) == 0 {