mirror of
https://github.com/kemko/nomad.git
synced 2026-01-01 16:05:42 +03:00
cli: add zero nodes message to node status (#19082)
Display a message to indicate that there are no nodes registered when `node status` returns zero values.
This commit is contained in:
@@ -229,6 +229,7 @@ func (c *NodeStatusCommand) Run(args []string) int {
|
||||
|
||||
// Return nothing if no nodes found
|
||||
if len(nodes) == 0 {
|
||||
c.Ui.Output("No nodes registered")
|
||||
return 0
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user