Home | History | Annotate | Download | only in scheduler

Lines Matching refs:labels

19     """Get the cache line with the hosts that match given labels.
21 Confirm that all hosts have matching labels within a line,
22 then return the lines with the requested labels. There can
25 @param labels: A list of label names.
28 @return: A list of the cache lines with the requested labels.
34 labels = list(line)[0].labels.get_label_names()
35 if any(host.labels.get_label_names() != labels for host in line):
37 if required_labels == labels:
263 'h1', 1, labels=test_utils.DEFAULT_DEPS,
272 cache.set_line(cache.get_key(host.labels, host.acls), [host])
274 cache.get_line(cache.get_key(host.labels, host.acls)) == [host])
278 'h2', 2, labels=[test_utils.DEFAULT_DEPS[0]],
287 'h2', 2, labels=test_utils.DEFAULT_DEPS,