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
Yong Tang b194252d80 Fix failure in docker ps --format when .Label has args
This fix tries to fix the issue in 30279 where  `docker ps --format`
fails if `.Label` has args. For example:
```
docker ps --format '{{.ID}}\t{{.Names}}\t{{.Label "some.label"}}'
```

The reason for the failure is that during the preprocessing phase
to detect the existance of `.Size`, the `listOptionsProcessor`
does not has a method of `Label(name string) string`.

This results in the failure of
```
template: :1:24: executing "" at <.Label>: Label is not a method but has arguments
```

This fix fixes the issue by adding needed method of `Label(name string) string`.

This fix fixes 30279.

Signed-off-by: Yong Tang <yong.tang.github@outlook.com>
(cherry picked from commit 2cd4ba1e56)
Signed-off-by: Victor Vieux <vieux@docker.com>
2017-01-24 17:45:05 -08:00
..
bundlefile Reinstate --bundle-file argument to 'docker deploy' 2016-11-10 11:28:18 -05:00
checkpoint Print checkpoint id when creating a checkpoint 2016-12-07 16:11:43 -08:00
commands
container Fix failure in docker ps --format when .Label has args 2017-01-24 17:45:05 -08:00
formatter Ensure proper value is used when computing reclaimable space 2017-01-24 15:41:06 -08:00
idresolver
image Support for docker content trust for plugins 2016-12-27 14:27:28 -08:00
inspect
network Convert DanglingOnly to Filters for docker image prune 2016-12-07 16:08:18 -08:00
node Revert "Add -a option to service/node ps" 2016-11-30 14:11:02 -08:00
plugin Fix usage message of plugin inspect 2017-01-04 12:44:54 +01:00
prune
registry Add registry-specific credential helper support 2016-12-09 14:23:58 -08:00
secret remove -f on secret create and unify usage with other commands 2017-01-09 06:37:40 -08:00
service cli: Pin image to digest using content trust 2016-12-15 18:20:13 -08:00
stack Merge pull request #29994 from vdemeester/29974-fix-external-network 2017-01-09 14:40:54 -08:00
swarm swarm leave is not only for workers 2016-12-15 22:41:43 -08:00
system Ignore certificate expiry error for top-level inspect 2017-01-24 16:05:53 -08:00
task service ps: Revert output to 1.12 behavior. 2016-12-12 13:25:44 -08:00
volume Convert DanglingOnly to Filters for docker image prune 2016-12-07 16:08:18 -08:00
cli.go Add registry-specific credential helper support 2016-12-09 14:23:58 -08:00
events_utils.go
in.go
out.go
registry.go Add registry-specific credential helper support 2016-12-09 14:23:58 -08:00
trust.go
utils.go Windows: Prompt fix 2016-12-13 17:09:29 -08:00