From 26746a4093169b703cf1d8e207c1c226b9b160be Mon Sep 17 00:00:00 2001 From: Luiz Aoqui Date: Tue, 14 Nov 2023 23:00:12 -0500 Subject: [PATCH] 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. --- command/node_status.go | 1 + 1 file changed, 1 insertion(+) diff --git a/command/node_status.go b/command/node_status.go index df1d9aace..4d3421404 100644 --- a/command/node_status.go +++ b/command/node_status.go @@ -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 }