1
0
Fork 0
mirror of https://github.com/moby/moby.git synced 2022-11-09 12:21:53 -05:00
moby--moby/api/client/image
Yong Tang a79a27412d Fix issue in docker import -c with quoted flags
This fix tries to address the issue in 26173 where `docker import -c`
with quoted flags returns an error.

The issue was that in `api/client/image/import.go` the flag
`--change/-c` was handled by `StringSliceVarP` which does not handle
the quote well.

The similiar issue was enountered for 23309 (`docker commit`).

This fix takes the same approach as 23309 where `StringSliceVarP`
was replaced with `VarP` and `opts.ListOpts`.

An integration test has been added to cover the changes.

This fix fixes 26173.

Signed-off-by: Yong Tang <yong.tang.github@outlook.com>
2016-09-01 16:28:22 -07:00
..
build.go Fix golint errors in api 2016-08-29 13:36:16 -07:00
history.go correct command annotation 2016-08-25 21:29:59 +08:00
images.go correct command annotation 2016-08-25 21:29:59 +08:00
import.go Fix issue in docker import -c with quoted flags 2016-09-01 16:28:22 -07:00
load.go Migrate load command to cobra 2016-06-09 17:28:33 +02:00
pull.go Make docker pull detect plugin content and error out. 2016-08-20 12:54:35 -07:00
push.go Make --help information consistent 2016-06-19 16:26:23 +08:00
remove.go correct command annotation 2016-08-25 21:29:59 +08:00
save.go Migrate save command to cobra 2016-06-09 17:38:20 +02:00
search.go correct command annotation 2016-08-25 21:29:59 +08:00
tag.go correct command annotation 2016-08-25 21:29:59 +08:00