From f2793060c5b446a96bf569f04b4f1d213a5d93ac Mon Sep 17 00:00:00 2001 From: Evgenii Stratonikov Date: Thu, 13 Oct 2022 15:06:19 +0300 Subject: [PATCH] [#1892] neofs-cli: Display maintenance status in `netmap nodeinfo` Signed-off-by: Evgenii Stratonikov --- cmd/neofs-cli/modules/netmap/nodeinfo.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/cmd/neofs-cli/modules/netmap/nodeinfo.go b/cmd/neofs-cli/modules/netmap/nodeinfo.go index 570e108895..9c14a1b73c 100644 --- a/cmd/neofs-cli/modules/netmap/nodeinfo.go +++ b/cmd/neofs-cli/modules/netmap/nodeinfo.go @@ -54,6 +54,8 @@ func prettyPrintNodeInfo(cmd *cobra.Command, i netmap.NodeInfo) { stateWord = "online" case i.IsOffline(): stateWord = "offline" + case i.IsMaintenance(): + stateWord = "maintenance" } cmd.Println("state:", stateWord)