summaryrefslogtreecommitdiff
path: root/libpod
diff options
context:
space:
mode:
authorOpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com>2021-07-09 14:21:08 -0400
committerGitHub <noreply@github.com>2021-07-09 14:21:08 -0400
commit24a5eeafc54ef7b1c04bfa8efe78fddd3f7e4014 (patch)
tree74693e2316a921d6ad9ed857f3c4df1648c7585e /libpod
parentdd2ca4bad46216009eda8f96e81af9425c29ab9d (diff)
parente5fcffc551b42936c635d13658e7d0a9e95d3a16 (diff)
downloadpodman-24a5eeafc54ef7b1c04bfa8efe78fddd3f7e4014.tar.gz
podman-24a5eeafc54ef7b1c04bfa8efe78fddd3f7e4014.tar.bz2
podman-24a5eeafc54ef7b1c04bfa8efe78fddd3f7e4014.zip
Merge pull request #10881 from mheon/remove_getstore
Remove GetStore function from Libpod
Diffstat (limited to 'libpod')
-rw-r--r--libpod/runtime.go9
1 files changed, 6 insertions, 3 deletions
diff --git a/libpod/runtime.go b/libpod/runtime.go
index d31d00ae4..30659a3d4 100644
--- a/libpod/runtime.go
+++ b/libpod/runtime.go
@@ -946,9 +946,12 @@ func (r *Runtime) StorageConfig() storage.StoreOptions {
return r.storageConfig
}
-// GetStore returns the runtime stores
-func (r *Runtime) GetStore() storage.Store {
- return r.store
+// RunRoot retrieves the current c/storage temporary directory in use by Libpod.
+func (r *Runtime) RunRoot() string {
+ if r.store == nil {
+ return ""
+ }
+ return r.store.RunRoot()
}
// GetName retrieves the name associated with a given full ID.