diff options
author | OpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com> | 2020-10-19 02:49:27 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-10-19 02:49:27 -0400 |
commit | 7ffcab0854342844a44b2668bd9d98849bf935c8 (patch) | |
tree | c7c8b60c8d389314309c7e2e73e3b41f06988fbc /libpod/runtime_cstorage.go | |
parent | 6ec96dc009d73cc2b0a3fa81149ca599b04252e4 (diff) | |
parent | 571ae9db7241ffbe1be4f254328cfd2e43369103 (diff) | |
download | podman-7ffcab0854342844a44b2668bd9d98849bf935c8.tar.gz podman-7ffcab0854342844a44b2668bd9d98849bf935c8.tar.bz2 podman-7ffcab0854342844a44b2668bd9d98849bf935c8.zip |
Merge pull request #7908 from rhatdan/diff
fix podman container exists and diff for storage containers
Diffstat (limited to 'libpod/runtime_cstorage.go')
-rw-r--r-- | libpod/runtime_cstorage.go | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/libpod/runtime_cstorage.go b/libpod/runtime_cstorage.go index 03eebeefc..61fdd42d3 100644 --- a/libpod/runtime_cstorage.go +++ b/libpod/runtime_cstorage.go @@ -52,6 +52,10 @@ func (r *Runtime) ListStorageContainers() ([]*StorageContainer, error) { return finalCtrs, nil } +func (r *Runtime) StorageContainer(idOrName string) (*storage.Container, error) { + return r.store.Container(idOrName) +} + // RemoveStorageContainer removes a container from c/storage. // The container WILL NOT be removed if it exists in libpod. // Accepts ID or full name of container. |