Revision 5c562aa4

b/doc/examples/dumb-allocator
77 77
  offline_nodes = [name for name in nodes if nodes[name]["offline"]]
78 78
  drained_nodes = [name for name in nodes if nodes[name]["offline"]]
79 79
  if req_type == "allocate":
80
    forbidden_nodes = offline_nodes
80
    forbidden_nodes = offline_nodes + drained_nodes
81 81
    inst_data = request
82 82
  elif req_type == "relocate":
83 83
    idict = data["instances"][request["name"]]

Also available in: Unified diff