summaryrefslogtreecommitdiff
path: root/libpod/info.go
diff options
context:
space:
mode:
authorOpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com>2018-12-28 17:44:35 -0800
committerGitHub <noreply@github.com>2018-12-28 17:44:35 -0800
commit1438d5471f4cb23493f65b7df3f30fbb95e565cd (patch)
treee8de59a3f2c7563048ae176eea8d7ed1959221e2 /libpod/info.go
parent0420215f65504623b5d16db0285b050eef2a22ca (diff)
parent652a9859988f3f555a1f7e18518656eb9c9332e6 (diff)
downloadpodman-1438d5471f4cb23493f65b7df3f30fbb95e565cd.tar.gz
podman-1438d5471f4cb23493f65b7df3f30fbb95e565cd.tar.bz2
podman-1438d5471f4cb23493f65b7df3f30fbb95e565cd.zip
Merge pull request #2059 from rhatdan/ociruntime
podman build is not using the default oci-runtime
Diffstat (limited to 'libpod/info.go')
-rw-r--r--libpod/info.go5
1 files changed, 5 insertions, 0 deletions
diff --git a/libpod/info.go b/libpod/info.go
index 5d8d160c8..7044eba6a 100644
--- a/libpod/info.go
+++ b/libpod/info.go
@@ -180,6 +180,11 @@ func (r *Runtime) GetConmonVersion() (string, error) {
return strings.TrimSuffix(strings.Replace(output, "\n", ", ", 1), "\n"), nil
}
+// GetOCIRuntimePath returns the path to the OCI Runtime Path the runtime is using
+func (r *Runtime) GetOCIRuntimePath() string {
+ return r.ociRuntimePath
+}
+
// GetOCIRuntimeVersion returns a string representation of the oci runtimes version
func (r *Runtime) GetOCIRuntimeVersion() (string, error) {
output, err := utils.ExecCmd(r.ociRuntimePath, "--version")