Home | History | Annotate | Download | only in scheduler

Lines Matching refs:labels

109         self.labels = rdb_utils.LabelIterator(host.labels.all())
169 host_info['labels'] = self.labels.get_label_names()
207 # We access labels for metrics generation below and it's awkward not
208 # knowing if labels were populated or not.
209 if not hasattr(self, 'labels'):
210 self.labels = ()
316 """Get the platform and labels on this host.
321 labels = [label for label in self.labels if label != platform]
322 return platform, labels
340 labels = labellib.LabelsMapping(self.labels)
341 return labels.get('board', '')
351 labels = labellib.LabelsMapping(self.labels)
352 return labels.get('model', '')
361 return [l[len(constants.Labels.POOL_PREFIX):] for l in self.labels
362 if l.startswith(constants.Labels.POOL_PREFIX)]