api/client/service: shorten to volume-opt

`volume-driver-opt` was too verbose for its own existence and the sanity
of those in the vicinity. The much better, sleeker `volume-opt` replaces
it. 7 bytes and a case of carpal tunnel syndrome are saved!

Signed-off-by: Stephen J Day <stephen.day@docker.com>
This commit is contained in:
Stephen J Day 2016-07-20 16:05:33 -07:00
parent 8c6c1aaf07
commit a40b5820c9
No known key found for this signature in database
GPG key ID: FB5F6B2905D7ECF3

View file

@ -218,7 +218,7 @@ func (m *MountOpt) Set(value string) error {
setValueOnMap(volumeOptions().Labels, value)
case "volume-driver":
volumeOptions().DriverConfig.Name = value
case "volume-driver-opt":
case "volume-opt":
if volumeOptions().DriverConfig.Options == nil {
volumeOptions().DriverConfig.Options = make(map[string]string)
}