def get_node_selector(self): if self.manifest is None or self.graph is None: raise InternalException( 'manifest and graph must be set to get perform node selection') return ResourceTypeSelector( graph=self.graph, manifest=self.manifest, previous_state=self.previous_state, resource_types=[NodeType.Seed], )
def get_node_selector(self): if self.manifest is None or self.graph is None: raise InternalException( 'manifest and graph must be set to get perform node selection') cls: Type[ResourceTypeSelector] if self.resource_types == [NodeType.Test]: return TestSelector( graph=self.graph, manifest=self.manifest, previous_state=self.previous_state, ) else: return ResourceTypeSelector( graph=self.graph, manifest=self.manifest, previous_state=self.previous_state, resource_types=self.resource_types, )