diff options
-rw-r--r-- | buildstream/_elementfactory.py | 3 | ||||
-rw-r--r-- | buildstream/_project.py | 4 |
2 files changed, 3 insertions, 4 deletions
diff --git a/buildstream/_elementfactory.py b/buildstream/_elementfactory.py index 282648a6e..d6591bf4c 100644 --- a/buildstream/_elementfactory.py +++ b/buildstream/_elementfactory.py @@ -47,7 +47,6 @@ class ElementFactory(PluginContext): # Args: # context (object): The Context object for processing # project (object): The project object - # artifacts (ArtifactCache): The artifact cache # meta (object): The loaded MetaElement # # Returns: A newly created Element object of the appropriate kind @@ -56,7 +55,7 @@ class ElementFactory(PluginContext): # PluginError (if the kind lookup failed) # LoadError (if the element itself took issue with the config) # - def create(self, context, project, artifacts, meta): + def create(self, context, project, meta): element_type, default_config = self.lookup(meta.kind) element = element_type(context, project, meta, default_config) version = self._format_versions.get(meta.kind, 0) diff --git a/buildstream/_project.py b/buildstream/_project.py index 0f327c66d..ef22f4e6f 100644 --- a/buildstream/_project.py +++ b/buildstream/_project.py @@ -230,9 +230,9 @@ class Project(): # def create_element(self, artifacts, meta, *, first_pass=False): if first_pass: - return self.first_pass_config.element_factory.create(self._context, self, artifacts, meta) + return self.first_pass_config.element_factory.create(self._context, self, meta) else: - return self.config.element_factory.create(self._context, self, artifacts, meta) + return self.config.element_factory.create(self._context, self, meta) # create_source() # |