nomad: use correct nodes index

This commit is contained in:
Armon Dadgar
2015-08-05 16:23:17 -07:00
parent 4e5f9d3f64
commit 549df977bc

View File

@@ -92,7 +92,7 @@ func evaluatePlan(snap *StateSnapshot, plan *structs.Plan) (*structs.PlanResult,
if err != nil {
return nil, err
}
nodeIndex, err := snap.GetIndex("node")
nodeIndex, err := snap.GetIndex("nodes")
if err != nil {
return nil, err
}