DockerCLI/command/system
Sebastiaan van Stijn 518b65c6f5 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>
2016-12-13 17:22:43 +01:00
..
cmd.go refactor help func in CLI 2016-11-17 10:54:10 -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-19 13:21:16 +01:00
inspect.go Ignore certificate expiry error for top-level inspect 2016-12-13 17:22:43 +01: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-28 11:38:58 -08:00