forked from TrueCloudLab/frostfs-node
[#1892] neofs-cli: Display maintenance status in netmap nodeinfo
Signed-off-by: Evgenii Stratonikov <evgeniy@morphbits.ru>
This commit is contained in:
parent
31c623636d
commit
f2793060c5
1 changed files with 2 additions and 0 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue