diff options
author | James Ennis <james.ennis@codethink.com> | 2019-01-31 20:30:40 +0000 |
---|---|---|
committer | James Ennis <james.ennis@codethink.com> | 2019-02-13 09:35:45 +0000 |
commit | 7cb6be7438e9d4076e2943538d54305838f48ddc (patch) | |
tree | 95b14b5fcea4d2117ac81b91b23a3eda3e189bc6 /buildstream | |
parent | 039d7c1d374db10036e297288ec012647003099b (diff) | |
download | buildstream-7cb6be7438e9d4076e2943538d54305838f48ddc.tar.gz |
element.py: Return early in __init_defaults if no plugin config
Diffstat (limited to 'buildstream')
-rw-r--r-- | buildstream/element.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/buildstream/element.py b/buildstream/element.py index f3aab5ddb..e03f1e171 100644 --- a/buildstream/element.py +++ b/buildstream/element.py @@ -2329,6 +2329,8 @@ class Element(Plugin): defaults['public'] = element_public def __init_defaults(self, plugin_conf): + if plugin_conf is None: + return # Defaults are loaded once per class and then reused # |