forked from TrueCloudLab/frostfs-node
[#1382] cli: Replace deprecated methods
Signed-off-by: Dmitrii Stepanov <d.stepanov@yadro.com>
This commit is contained in:
parent
ac1eee091d
commit
3441fff05d
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()))
|
||||
|
||||
var stateWord string
|
||||
switch {
|
||||
switch i.Status() {
|
||||
default:
|
||||
stateWord = "<undefined>"
|
||||
case i.IsOnline():
|
||||
case netmap.Online:
|
||||
stateWord = "online"
|
||||
case i.IsOffline():
|
||||
case netmap.Offline:
|
||||
stateWord = "offline"
|
||||
case i.IsMaintenance():
|
||||
case netmap.Maintenance:
|
||||
stateWord = "maintenance"
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue