moby/cli
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
..
command Ignore certificate expiry error for top-level inspect 2017-01-24 16:05:53 -08:00
flags Trim quotes from TLS flags. 2017-01-04 12:43:17 +01:00
trust Support for docker content trust for plugins 2016-12-27 14:27:28 -08:00
cobra.go exit with status 1 if help is called on an invalid command. 2016-11-28 11:18:28 -08:00
error.go Remove old cli framework. 2016-08-25 13:09:04 -04:00
required.go fix typos 2016-07-05 20:42:17 +08:00