summaryrefslogtreecommitdiff
path: root/buildstream/_elementfactory.py
diff options
context:
space:
mode:
authorTristan Van Berkom <tristan.vanberkom@codethink.co.uk>2017-01-12 14:47:48 -0500
committerTristan Van Berkom <tristan.vanberkom@codethink.co.uk>2017-01-12 16:34:02 -0500
commit83dd9783fe48b419d480a018399a6c2a90714bd4 (patch)
tree4caa8a7e962b493de3f81a1cff6e184ae8f7eaaf /buildstream/_elementfactory.py
parent31921db1f155b7163c4b8f2c5477419e30c28d01 (diff)
downloadbuildstream-83dd9783fe48b419d480a018399a6c2a90714bd4.tar.gz
_elementfactory.py: Constructor now takes display_name
Diffstat (limited to 'buildstream/_elementfactory.py')
-rw-r--r--buildstream/_elementfactory.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/buildstream/_elementfactory.py b/buildstream/_elementfactory.py
index cd3c2755d..5c37b6f17 100644
--- a/buildstream/_elementfactory.py
+++ b/buildstream/_elementfactory.py
@@ -47,6 +47,7 @@ class ElementFactory(PluginContext):
#
# Args:
# kind (str): The kind of Element to create
+ # display_name (str): A name to display the Element
# context (object): The Context object for processing
# project (object): The project object
# meta (object): The loaded MetaElement
@@ -57,6 +58,6 @@ class ElementFactory(PluginContext):
# PluginError (if the kind lookup failed)
# LoadError (if the element itself took issue with the config)
#
- def create(self, kind, context, project, artifacts, meta):
+ def create(self, kind, display_name, context, project, artifacts, meta):
element_type = self.lookup(kind)
- return element_type(context, project, artifacts, meta)
+ return element_type(display_name, context, project, artifacts, meta)