From 6a06d8d94c59cbdb071d2903d89889095802ea87 Mon Sep 17 00:00:00 2001 From: Stephen J Day Date: Wed, 20 Jul 2016 16:05:33 -0700 Subject: [PATCH] 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 (cherry picked from commit a40b5820c91640183b40e0668f6802415e6adc14) Signed-off-by: Tibor Vass --- api/client/service/opts.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/client/service/opts.go b/api/client/service/opts.go index 8b982ca257..52cf2bb5d6 100644 --- a/api/client/service/opts.go +++ b/api/client/service/opts.go @@ -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) }