moby/cli/command/system
Sebastiaan van Stijn 482534ff5f Ignore certificate expiry error for top-level inspect
The top-level `docker inspect` command could return
an error if the nodes Swarm certificates were expired.

In situations where the user did not explicitly
ask for an object-type (`--type=foo`), we should
ignore these errors, and consider them equal to
"node is not a swarm manager".

This change makes `docker inspect` ignore these
errors if no type was specified.

As a further optimization, the "swarm status"
result is now stored in a variable, so that
other swarm-specific API calls can be skipped.

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
(cherry picked from commit 66cf4cc7f7)
Signed-off-by: Victor Vieux <vieux@docker.com>
2017-01-24 16:05:53 -08:00
..
cmd.go refactor help func in CLI 2016-11-18 13:30:44 -08:00
df.go always add but hide experimental cmds and flags 2016-11-08 04:55:27 -08:00
events.go Fix typs from go to Go 2016-10-18 19:40:16 +08:00
info.go api: types: keep info.SecurityOptions a string slice 2016-11-21 14:45:05 -08:00
inspect.go Ignore certificate expiry error for top-level inspect 2017-01-24 16:05:53 -08:00
prune.go always add but hide experimental cmds and flags 2016-11-08 04:55:27 -08:00
version.go Align output of docker version again 2016-11-29 14:07:39 -08:00