summaryrefslogtreecommitdiff
path: root/libpod
diff options
context:
space:
mode:
authorOpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com>2020-04-28 15:25:16 +0200
committerGitHub <noreply@github.com>2020-04-28 15:25:16 +0200
commite9a1726f50565d633edf87a88ca6960ea075d50f (patch)
tree1daa41f3e7a474b138f4590929f2b44a06bcd62c /libpod
parentf079b4ee5ea9673f8697fbf9120ff24b4f16b07f (diff)
parente78e66c5b9a103f577df155b3f61130cfc718d0f (diff)
downloadpodman-e9a1726f50565d633edf87a88ca6960ea075d50f.tar.gz
podman-e9a1726f50565d633edf87a88ca6960ea075d50f.tar.bz2
podman-e9a1726f50565d633edf87a88ca6960ea075d50f.zip
Merge pull request #6007 from baude/v2intvolumes
enable volume integration tests
Diffstat (limited to 'libpod')
-rw-r--r--libpod/options.go7
1 files changed, 6 insertions, 1 deletions
diff --git a/libpod/options.go b/libpod/options.go
index b4e436b63..33b423bce 100644
--- a/libpod/options.go
+++ b/libpod/options.go
@@ -1400,8 +1400,13 @@ func WithVolumeDriver(driver string) VolumeCreateOption {
if volume.valid {
return define.ErrVolumeFinalized
}
+ // only local driver is possible rn
+ if driver != define.VolumeDriverLocal {
+ return define.ErrNotImplemented
- return define.ErrNotImplemented
+ }
+ volume.config.Driver = define.VolumeDriverLocal
+ return nil
}
}