[#1892] neofs-cli: Display maintenance status in netmap nodeinfo

Signed-off-by: Evgenii Stratonikov <evgeniy@morphbits.ru>
This commit is contained in:
Evgenii Stratonikov 2022-10-13 15:06:19 +03:00 committed by fyrchik
parent 31c623636d
commit f2793060c5

View file

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