summaryrefslogtreecommitdiff
path: root/cmd/podman/exists.go
diff options
context:
space:
mode:
authorGiuseppe Scrivano <gscrivan@redhat.com>2019-04-16 14:12:12 +0200
committerGiuseppe Scrivano <gscrivan@redhat.com>2019-04-26 22:23:49 +0200
commitf49e0c19ede56b1cc6b1d44ea9ba8b336cd22658 (patch)
tree9a68b96d5f85adcc67189e97e1c788786c20b32c /cmd/podman/exists.go
parent525f0b30ac280565a1f98fd4208821a4984a7515 (diff)
downloadpodman-f49e0c19ede56b1cc6b1d44ea9ba8b336cd22658.tar.gz
podman-f49e0c19ede56b1cc6b1d44ea9ba8b336cd22658.tar.bz2
podman-f49e0c19ede56b1cc6b1d44ea9ba8b336cd22658.zip
runtime: pass down the context
Signed-off-by: Giuseppe Scrivano <gscrivan@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 dae48f14b..6619522b6 100644
--- a/cmd/podman/exists.go
+++ b/cmd/podman/exists.go
@@ -86,7 +86,7 @@ func imageExistsCmd(c *cliconfig.ImageExistsValues) error {
if len(args) > 1 || len(args) < 1 {
return errors.New("you may only check for the existence of one image at a time")
}
- runtime, err := adapter.GetRuntime(&c.PodmanCommand)
+ runtime, err := adapter.GetRuntime(getContext(), &c.PodmanCommand)
if err != nil {
return errors.Wrapf(err, "could not get runtime")
}
@@ -107,7 +107,7 @@ func containerExistsCmd(c *cliconfig.ContainerExistsValues) error {
if len(args) > 1 || len(args) < 1 {
return errors.New("you may only check for the existence of one container at a time")
}
- runtime, err := adapter.GetRuntime(&c.PodmanCommand)
+ runtime, err := adapter.GetRuntime(getContext(), &c.PodmanCommand)
if err != nil {
return errors.Wrapf(err, "could not get runtime")
}
@@ -126,7 +126,7 @@ func podExistsCmd(c *cliconfig.PodExistsValues) error {
if len(args) > 1 || len(args) < 1 {
return errors.New("you may only check for the existence of one pod at a time")
}
- runtime, err := adapter.GetRuntime(&c.PodmanCommand)
+ runtime, err := adapter.GetRuntime(getContext(), &c.PodmanCommand)
if err != nil {
return errors.Wrapf(err, "could not get runtime")
}