mirror of
https://github.com/kemko/nomad.git
synced 2026-01-10 20:35:42 +03:00
state_store error if called without node_ids
This commit is contained in:
@@ -680,7 +680,7 @@ func (s *StateStore) UpsertNode(index uint64, node *structs.Node) error {
|
||||
// DeleteNode deregisters a batch of nodes
|
||||
func (s *StateStore) DeleteNode(index uint64, nodes []string) error {
|
||||
if len(nodes) == 0 {
|
||||
return nil
|
||||
return fmt.Errorf("node ids missing")
|
||||
}
|
||||
|
||||
txn := s.db.Txn(true)
|
||||
|
||||
Reference in New Issue
Block a user