summaryrefslogtreecommitdiff
path: root/libpod/options.go
diff options
context:
space:
mode:
authorBrent Baude <bbaude@redhat.com>2020-04-27 15:28:01 -0500
committerBrent Baude <bbaude@redhat.com>2020-04-27 16:12:06 -0500
commite78e66c5b9a103f577df155b3f61130cfc718d0f (patch)
tree89f7396afc56d5fc09f28bbf2f42dec9167d277f /libpod/options.go
parentf6f71724949c22cf89a44015c29bd5a144db7390 (diff)
downloadpodman-e78e66c5b9a103f577df155b3f61130cfc718d0f.tar.gz
podman-e78e66c5b9a103f577df155b3f61130cfc718d0f.tar.bz2
podman-e78e66c5b9a103f577df155b3f61130cfc718d0f.zip
enable volume integration tests
enabled integration tests for volumes. there are two exceptions that still need work because of something not yet implemented. also, add code to deal with the fact that containers conf appears to set a local volume driver where it used to be simply blank. Signed-off-by: Brent Baude <bbaude@redhat.com>
Diffstat (limited to 'libpod/options.go')
-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
}
}