From 3ad8a2498cf26d63dadf62b699cf1c09da2ec525 Mon Sep 17 00:00:00 2001 From: Lang Martin Date: Wed, 26 Jun 2019 10:52:31 -0400 Subject: [PATCH] state_store error if called without node_ids --- nomad/state/state_store.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nomad/state/state_store.go b/nomad/state/state_store.go index fa6cb0840..a384e2b4d 100644 --- a/nomad/state/state_store.go +++ b/nomad/state/state_store.go @@ -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)