Home | History | Annotate | Download | only in cli

Lines Matching refs:labels

73     def _cleanup_labels(self, labels, platform=None):
74 """Removes the platform label from the overall labels"""
76 return [label for label in labels
80 return [label for label in labels
85 return labels
107 help='Only list hosts with all these labels '
135 label_info = topic_common.item_parse_info(attribute_name='labels',
160 if self.labels:
161 if len(self.labels) == 1:
162 # This is needed for labels with wildcards (x86*)
163 filters['labels__name__in'] = self.labels
166 filters['multiple_labels'] = self.labels
195 # Remove the platform from the labels.
197 result['labels'] = self._cleanup_labels(result['labels'],
203 'shard', 'locked', 'lock_reason', 'platform', 'labels']
236 labels = self.execute_rpc('get_labels', host__hostname=host)
237 results.append([[stat], acls, labels, stat['attributes']])
242 for stats, acls, labels, attributes in results:
249 labels = self._cleanup_labels(labels)
250 self.print_by_ids(labels, 'Labels', line_before=True)
404 --labels <labels>|--blist <label_file>
425 self.parser.add_option('-b', '--labels',
426 help='Comma separated list of labels')
428 help='File listing the labels',
449 label_info = topic_common.item_parse_info(attribute_name='labels',
450 inline_option='labels',
486 labels = self.labels[:]
488 labels.append(self.platform)
489 if len (labels):
490 self.execute_rpc('host_add_labels', id=host, labels=labels)
510 # We need to check if these labels & ACLs exist,
517 if self.labels:
519 self.labels,