Update frostfs-sdk-go
and frostfs-api-go
versions #1382
1 changed files with 4 additions and 4 deletions
|
@ -49,14 +49,14 @@ func prettyPrintNodeInfo(cmd *cobra.Command, i netmap.NodeInfo) {
|
||||||
cmd.Println("key:", hex.EncodeToString(i.PublicKey()))
|
cmd.Println("key:", hex.EncodeToString(i.PublicKey()))
|
||||||
|
|
||||||
var stateWord string
|
var stateWord string
|
||||||
switch {
|
switch i.Status() {
|
||||||
default:
|
default:
|
||||||
stateWord = "<undefined>"
|
stateWord = "<undefined>"
|
||||||
case i.IsOnline():
|
case netmap.Online:
|
||||||
stateWord = "online"
|
stateWord = "online"
|
||||||
case i.IsOffline():
|
case netmap.Offline:
|
||||||
stateWord = "offline"
|
stateWord = "offline"
|
||||||
case i.IsMaintenance():
|
case netmap.Maintenance:
|
||||||
stateWord = "maintenance"
|
stateWord = "maintenance"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue