forked from TrueCloudLab/frostfs-node
[#1608] neofs-adm: Print info about already performed steps
Signed-off-by: Evgenii Stratonikov <evgeniy@nspcc.ru>
This commit is contained in:
parent
5e1636e50c
commit
59d08b8dae
1 changed files with 1 additions and 0 deletions
|
@ -30,6 +30,7 @@ func (c *initializeContext) registerCandidates() error {
|
||||||
if res.State == vmstate.Halt.String() && len(res.Stack) > 0 {
|
if res.State == vmstate.Halt.String() && len(res.Stack) > 0 {
|
||||||
arr, ok := res.Stack[0].Value().([]stackitem.Item)
|
arr, ok := res.Stack[0].Value().([]stackitem.Item)
|
||||||
if ok && len(arr) > 0 {
|
if ok && len(arr) > 0 {
|
||||||
|
c.Command.Println("Candidates are already registered.")
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue