Ver Fonte

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>
(cherry picked from commit a40b5820c91640183b40e0668f6802415e6adc14)
Signed-off-by: Tibor Vass <tibor@docker.com>
Stephen J Day há 9 anos atrás
pai
commit
6a06d8d94c
1 ficheiros alterados com 1 adições e 1 exclusões
  1. 1 1
      api/client/service/opts.go

+ 1 - 1
api/client/service/opts.go

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