mirror of https://github.com/docker/cli.git
Merge pull request #27910 from dperny/node_ip_in_raft
Auto-detect node IP address
This commit is contained in:
commit
938d24ab51
|
@ -95,6 +95,7 @@ func printNode(out io.Writer, node swarm.Node) {
|
||||||
fmt.Fprintf(out, " State:\t\t\t%s\n", command.PrettyPrint(node.Status.State))
|
fmt.Fprintf(out, " State:\t\t\t%s\n", command.PrettyPrint(node.Status.State))
|
||||||
ioutils.FprintfIfNotEmpty(out, " Message:\t\t%s\n", command.PrettyPrint(node.Status.Message))
|
ioutils.FprintfIfNotEmpty(out, " Message:\t\t%s\n", command.PrettyPrint(node.Status.Message))
|
||||||
fmt.Fprintf(out, " Availability:\t\t%s\n", command.PrettyPrint(node.Spec.Availability))
|
fmt.Fprintf(out, " Availability:\t\t%s\n", command.PrettyPrint(node.Spec.Availability))
|
||||||
|
ioutils.FprintfIfNotEmpty(out, " Address:\t\t%s\n", command.PrettyPrint(node.Status.Addr))
|
||||||
|
|
||||||
if node.ManagerStatus != nil {
|
if node.ManagerStatus != nil {
|
||||||
fmt.Fprintln(out, "Manager Status:")
|
fmt.Fprintln(out, "Manager Status:")
|
||||||
|
|
Loading…
Reference in New Issue