1
0
Fork 0
mirror of https://github.com/moby/moby.git synced 2022-11-09 12:21:53 -05:00
moby--moby/cli/command/network
Yong Tang e3f484241d Use ListOpt for docker network create --label and docker volume create --label
This fix is related to 27049 and 27047. For `--label` flag, if string slice is
used (like 27047), then quote can not be used in command and will result in
an error :
```
line 1, column 14: bare " in non-quoted-field
```

The issue 27047 has been fixed by 27049.

Recently I found out that both `docker network create --label` and `docker volume create --label`
still use string slice and will return the same error when quotes are used.

This fix fixes `docker network create --label` and `docker volume create --label`
by using `ListOpt` (as 27049) as well.

This fix has been tested and verified manually.

Signed-off-by: Yong Tang <yong.tang.github@outlook.com>
2016-10-12 16:06:34 -07:00
..
cmd.go Only hide commands if the env variable is set. 2016-09-19 13:28:15 -04:00
connect.go Move api/client -> cli/command 2016-09-08 15:46:29 -04:00
create.go Use ListOpt for docker network create --label and docker volume create --label 2016-10-12 16:06:34 -07:00
disconnect.go Move api/client -> cli/command 2016-09-08 15:46:29 -04:00
inspect.go Move api/client -> cli/command 2016-09-08 15:46:29 -04:00
list.go Fix testcases that expect trailing whitespace 2016-09-13 17:58:12 -04:00
remove.go Move api/client -> cli/command 2016-09-08 15:46:29 -04:00