diff options
author | OpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com> | 2020-12-01 22:32:08 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-12-01 22:32:08 +0100 |
commit | 7f084a8ae212f1c2c67e9cfb1f9e4c5470e01870 (patch) | |
tree | 7078a75662049ee596cbfecb96c41ad95cee3aa9 /libpod/options.go | |
parent | c71ad9a557ee80eccde2608939c81906379fa7ae (diff) | |
parent | 594ac4a14658a90ad7bc5541dab6349a0c629a5c (diff) | |
download | podman-7f084a8ae212f1c2c67e9cfb1f9e4c5470e01870.tar.gz podman-7f084a8ae212f1c2c67e9cfb1f9e4c5470e01870.tar.bz2 podman-7f084a8ae212f1c2c67e9cfb1f9e4c5470e01870.zip |
Merge pull request #8357 from mheon/add_volume_interface_package
Add API for communicating with Docker volume plugins
Diffstat (limited to 'libpod/options.go')
-rw-r--r-- | libpod/options.go | 13 |
1 files changed, 10 insertions, 3 deletions
diff --git a/libpod/options.go b/libpod/options.go index 0f55f34a3..bd12c0c34 100644 --- a/libpod/options.go +++ b/libpod/options.go @@ -1547,12 +1547,19 @@ func WithVolumeDriver(driver string) VolumeCreateOption { if volume.valid { return define.ErrVolumeFinalized } - // only local driver is possible rn + + // Uncomment when volume plugins are ready for use. + // if driver != define.VolumeDriverLocal { + // if _, err := plugin.GetVolumePlugin(driver); err != nil { + // return err + // } + // } + if driver != define.VolumeDriverLocal { return define.ErrNotImplemented - } - volume.config.Driver = define.VolumeDriverLocal + + volume.config.Driver = driver return nil } } |