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:
Luiz Aoqui
2023-11-14 23:00:12 -05:00
committed by GitHub
parent 98e9fb4698
commit 26746a4093

View File

@@ -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
}