summaryrefslogtreecommitdiff
path: root/pkg/adapter/runtime.go
diff options
context:
space:
mode:
authorOpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com>2019-09-09 21:48:30 +0200
committerGitHub <noreply@github.com>2019-09-09 21:48:30 +0200
commit9a55bce9e4d7e1bb3d57dc8879e1a23f559e18ba (patch)
treeb048b0e2228fa9ae67c9a73bd4fecf1739f64d75 /pkg/adapter/runtime.go
parent7042a3d7a539bae79ed63bdc87f432b8ec73afd8 (diff)
parent046178e55f72ed9db7cf5898d3be91b0112ab94f (diff)
downloadpodman-9a55bce9e4d7e1bb3d57dc8879e1a23f559e18ba.tar.gz
podman-9a55bce9e4d7e1bb3d57dc8879e1a23f559e18ba.tar.bz2
podman-9a55bce9e4d7e1bb3d57dc8879e1a23f559e18ba.zip
Merge pull request #3896 from mheon/volume_lookup
Add ability to look up volumes by unambiguous partial name
Diffstat (limited to 'pkg/adapter/runtime.go')
-rw-r--r--pkg/adapter/runtime.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/pkg/adapter/runtime.go b/pkg/adapter/runtime.go
index dd15e1d15..fd6587505 100644
--- a/pkg/adapter/runtime.go
+++ b/pkg/adapter/runtime.go
@@ -196,8 +196,8 @@ func (r *LocalRuntime) CreateVolume(ctx context.Context, c *cliconfig.VolumeCrea
}
// RemoveVolumes is a wrapper to remove volumes
-func (r *LocalRuntime) RemoveVolumes(ctx context.Context, c *cliconfig.VolumeRmValues) ([]string, error) {
- return r.Runtime.RemoveVolumes(ctx, c.InputArgs, c.All, c.Force)
+func (r *LocalRuntime) RemoveVolumes(ctx context.Context, c *cliconfig.VolumeRmValues) ([]string, map[string]error, error) {
+ return shared.SharedRemoveVolumes(ctx, r.Runtime, c.InputArgs, c.All, c.Force)
}
// Push is a wrapper to push an image to a registry
@@ -220,7 +220,7 @@ func (r *LocalRuntime) InspectVolumes(ctx context.Context, c *cliconfig.VolumeIn
volumes, err = r.GetAllVolumes()
} else {
for _, v := range c.InputArgs {
- vol, err := r.GetVolume(v)
+ vol, err := r.LookupVolume(v)
if err != nil {
return nil, err
}