Merge pull request #3146 from vrothberg/fix-3145

remote: version: fix nil dereference
This commit is contained in:
OpenShift Merge Robot
2019-05-17 15:04:39 +02:00
committed by GitHub

View File

@ -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")
}