Skip to content

Commit bb0aa13

Browse files
committed
fix typo
1 parent e52e15f commit bb0aa13

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

nomad/node_endpoint.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -1226,7 +1226,7 @@ func (n *Node) UpdateAlloc(args *structs.AllocUpdateRequest, reply *structs.Gene
12261226
return fmt.Errorf("node %s not found", nodeID)
12271227
}
12281228
if node.UnresponsiveStatus() {
1229-
return fmt.Errorf("node %s is not allow to update allocs while in status %s", nodeID, node.Status)
1229+
return fmt.Errorf("node %s is not allowed to update allocs while in status %s", nodeID, node.Status)
12301230
}
12311231

12321232
// Ensure that evals aren't set from client RPCs

nomad/node_endpoint_test.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -2766,7 +2766,7 @@ func TestClientEndpoint_UpdateAlloc_NodeNotReady(t *testing.T) {
27662766
}
27672767
var allocUpdateResp structs.NodeAllocsResponse
27682768
err = msgpackrpc.CallWithCodec(codec, "Node.UpdateAlloc", allocUpdateReq, &allocUpdateResp)
2769-
require.ErrorContains(t, err, "not allow to update allocs")
2769+
require.ErrorContains(t, err, "not allowed to update allocs")
27702770

27712771
// Send request without an explicit node ID.
27722772
updatedAlloc.NodeID = ""

0 commit comments

Comments
 (0)