summaryrefslogtreecommitdiff
path: root/src/buildstream/_pluginfactory/sourcefactory.py
diff options
context:
space:
mode:
authorTristan Van Berkom <tristan.van.berkom@gmail.com>2020-10-01 08:01:13 +0000
committerTristan Van Berkom <tristan.van.berkom@gmail.com>2020-10-01 08:01:13 +0000
commitea235b9d7764b17ee5d042bc1e204bf9bdb87a8b (patch)
treea31bd535be946b3032d22b6296a49b735ba5e2b1 /src/buildstream/_pluginfactory/sourcefactory.py
parent348108d933be748727ee8aec861ecd5c168db72e (diff)
parent751c80d4938b7c3a798d056134f58844242939b3 (diff)
downloadbuildstream-ea235b9d7764b17ee5d042bc1e204bf9bdb87a8b.tar.gz
Merge branch 'tristan/lazy-provenance' into 'master'
Refactor: Lazily instantiate ProvenanceInformation objects See merge request BuildStream/buildstream!2026
Diffstat (limited to 'src/buildstream/_pluginfactory/sourcefactory.py')
-rw-r--r--src/buildstream/_pluginfactory/sourcefactory.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/buildstream/_pluginfactory/sourcefactory.py b/src/buildstream/_pluginfactory/sourcefactory.py
index 2ed78f838..3375d182b 100644
--- a/src/buildstream/_pluginfactory/sourcefactory.py
+++ b/src/buildstream/_pluginfactory/sourcefactory.py
@@ -49,6 +49,6 @@ class SourceFactory(PluginFactory):
# LoadError (if the source itself took issue with the config)
#
def create(self, context, project, meta, variables):
- source_type, _ = self.lookup(context.messenger, meta.kind, meta.provenance)
+ source_type, _ = self.lookup(context.messenger, meta.kind, meta.config)
source = source_type(context, project, meta, variables)
return source