summaryrefslogtreecommitdiff
path: root/cmd
diff options
context:
space:
mode:
authorOpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com>2019-05-17 15:04:39 +0200
committerGitHub <noreply@github.com>2019-05-17 15:04:39 +0200
commit0e20ae0b3a8c5e4e4e9511d078ed8479c67f2243 (patch)
tree31eacb1aa2140683e5fffb7773d5094fcc3a964c /cmd
parentee1383a7b9a1fc7bda96b47fb9a1f38dc5e36d24 (diff)
parent8f7f86d8cdadd90670b5dbbdfedb2550b0a4025a (diff)
downloadpodman-0e20ae0b3a8c5e4e4e9511d078ed8479c67f2243.tar.gz
podman-0e20ae0b3a8c5e4e4e9511d078ed8479c67f2243.tar.bz2
podman-0e20ae0b3a8c5e4e4e9511d078ed8479c67f2243.zip
Merge pull request #3146 from vrothberg/fix-3145
remote: version: fix nil dereference
Diffstat (limited to 'cmd')
-rw-r--r--cmd/podman/version.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/cmd/podman/version.go b/cmd/podman/version.go
index 439a1cca6..52a518db8 100644
--- a/cmd/podman/version.go
+++ b/cmd/podman/version.go
@@ -70,7 +70,7 @@ func versionCmd(c *cliconfig.VersionValues) error {
if remote {
fmt.Fprintf(w, "\nService:\n")
- runtime, err := adapter.GetRuntime(getContext(), nil)
+ runtime, err := adapter.GetRuntime(getContext(), &c.PodmanCommand)
if err != nil {
return errors.Wrapf(err, "could not get runtime")
}