Lines Matching full:spec
11 Currently, 'complex' means that the spec contains more labels.
37 Given a simple list of HostSpec objects, pull out the spec and use it to
38 get the associated hosts out of hosts_per_spec. Return the spec and the
45 spec = host_specs.pop()
46 return spec, hosts_per_spec[spec]
103 def __init__(self, spec):
104 self.spec = spec
116 for spec, host_list in hosts_per_spec.iteritems():
118 self.add_host_for_spec(spec, host)
142 def add_host_for_spec(self, spec, host):
145 @param spec: HostSpec to associate host with.
147 If None, this spec will be relegated to the list of
151 if spec not in [d.spec for d in self._get_host_datas()]:
152 self._potentially_unsatisfied_specs.append(spec)
158 if spec in self._potentially_unsatisfied_specs:
159 self._potentially_unsatisfied_specs.remove(spec)
160 self._hostname_data_dict[host.hostname] = self.HostData(spec)
175 for spec in self._potentially_unsatisfied_specs:
176 # If a spec in _potentially_unsatisfied_specs is a subset of some
177 # satisfied spec, then it's not unsatisfied.
178 if filter(lambda d: spec.is_subset(d.spec), self._get_host_datas()):
180 unsatisfied.append(spec)
189 # If imaging succeeded for any host that satisfies a spec,
192 ok.add(data.spec)
194 possibly_doomed.add(data.spec)
195 # If a spec is not a subset of any ok spec, it's doomed.