diff options
author | OpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com> | 2021-07-09 14:21:08 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-07-09 14:21:08 -0400 |
commit | 24a5eeafc54ef7b1c04bfa8efe78fddd3f7e4014 (patch) | |
tree | 74693e2316a921d6ad9ed857f3c4df1648c7585e /pkg/systemd | |
parent | dd2ca4bad46216009eda8f96e81af9425c29ab9d (diff) | |
parent | e5fcffc551b42936c635d13658e7d0a9e95d3a16 (diff) | |
download | podman-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 'pkg/systemd')
-rw-r--r-- | pkg/systemd/generate/containers.go | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/pkg/systemd/generate/containers.go b/pkg/systemd/generate/containers.go index 0e6e1b4df..083520316 100644 --- a/pkg/systemd/generate/containers.go +++ b/pkg/systemd/generate/containers.go @@ -160,16 +160,11 @@ func generateContainerInfo(ctr *libpod.Container, options entities.GenerateSyste nameOrID, serviceName := containerServiceName(ctr, options) - store := ctr.Runtime().GetStore() - if store == nil { - return nil, errors.Errorf("could not determine storage store for container") - } - var runRoot string if options.New { runRoot = "%t/containers" } else { - runRoot = store.RunRoot() + runRoot = ctr.Runtime().RunRoot() if runRoot == "" { return nil, errors.Errorf("could not lookup container's runroot: got empty string") } |