From f2181141e1aea2bafef786d83b90eea54010854b Mon Sep 17 00:00:00 2001 From: Phoenix The Fallen Date: Wed, 24 Mar 2021 22:53:53 +0300 Subject: [NO TESTS NEEDED] Fix rootless volume plugins In a case of volume plugins with custom options. Signed-off-by: Phoenix The Fallen --- libpod/options.go | 9 --------- 1 file changed, 9 deletions(-) (limited to 'libpod/options.go') diff --git a/libpod/options.go b/libpod/options.go index 85862cc17..2d64abcdf 100644 --- a/libpod/options.go +++ b/libpod/options.go @@ -1577,8 +1577,6 @@ func WithVolumeLabels(labels map[string]string) VolumeCreateOption { } // WithVolumeOptions sets the options of the volume. -// If the "local" driver has been selected, options will be validated. There are -// currently 3 valid options for the "local" driver - o, type, and device. func WithVolumeOptions(options map[string]string) VolumeCreateOption { return func(volume *Volume) error { if volume.valid { @@ -1587,13 +1585,6 @@ func WithVolumeOptions(options map[string]string) VolumeCreateOption { volume.config.Options = make(map[string]string) for key, value := range options { - switch key { - case "type", "device", "o", "UID", "GID": - volume.config.Options[key] = value - default: - return errors.Wrapf(define.ErrInvalidArg, "unrecognized volume option %q is not supported with local driver", key) - } - volume.config.Options[key] = value } -- cgit v1.2.3-54-g00ecf