mirror of https://github.com/docker/cli.git
518b65c6f5
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> |
||
---|---|---|
command | ||
flags | ||
cobra.go | ||
error.go | ||
required.go |