diff options
author | baude <bbaude@redhat.com> | 2019-01-15 14:44:46 -0600 |
---|---|---|
committer | baude <bbaude@redhat.com> | 2019-01-15 16:01:25 -0600 |
commit | e68f03ae45adbaa539c7470aa5f99dc870c185dc (patch) | |
tree | 186737d7a6578d48496a25233831bc7465381e57 /cmd/podman/exists.go | |
parent | 341f91da480bbf337dfb13107389307835b1f0c3 (diff) | |
download | podman-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/exists.go')
-rw-r--r-- | cmd/podman/exists.go | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/cmd/podman/exists.go b/cmd/podman/exists.go index a957e1ef7..a7601aaa2 100644 --- a/cmd/podman/exists.go +++ b/cmd/podman/exists.go @@ -71,7 +71,7 @@ func imageExistsCmd(c *cli.Context) error { if err != nil { return errors.Wrapf(err, "could not get runtime") } - defer runtime.Runtime.Shutdown(false) + defer 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 @@ -92,8 +92,8 @@ func containerExistsCmd(c *cli.Context) error { if err != nil { return errors.Wrapf(err, "could not get runtime") } - defer runtime.Runtime.Shutdown(false) - if _, err := runtime.Runtime.LookupContainer(args[0]); err != nil { + defer runtime.Shutdown(false) + if _, err := runtime.LookupContainer(args[0]); err != nil { if errors.Cause(err) == libpod.ErrNoSuchCtr || err.Error() == "io.podman.ContainerNotFound" { os.Exit(1) } |