diff options
author | Angelos Evripiotis <jevripiotis@bloomberg.net> | 2017-12-12 17:05:17 +0000 |
---|---|---|
committer | Jürg Billeter <j@bitron.ch> | 2017-12-13 10:34:45 +0100 |
commit | 11f8254c3f5f01b8d2f0e4f60142eb8a7cb42afd (patch) | |
tree | 3e66505eb6c99b2b6720b002b825c96890ee6b2f /buildstream | |
parent | bc90bc5d6005cc5798899c84816ffe47f939b621 (diff) | |
download | buildstream-11f8254c3f5f01b8d2f0e4f60142eb8a7cb42afd.tar.gz |
plugins/elements/script.py: Remove check for 'commands'
This isn't reachable as there's a default value in script.yaml, also it
has an error in it - ElementError hasn't been declared in this scope.
Diffstat (limited to 'buildstream')
-rw-r--r-- | buildstream/plugins/elements/script.py | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/buildstream/plugins/elements/script.py b/buildstream/plugins/elements/script.py index 77923d5ae..f4e705967 100644 --- a/buildstream/plugins/elements/script.py +++ b/buildstream/plugins/elements/script.py @@ -50,10 +50,6 @@ class ScriptElement(buildstream.ScriptElement): 'commands', 'root-read-only', 'layout' ]) - if "commands" not in node: - raise ElementError("{}: Unexpectedly missing command group 'commands'" - .format(self)) - cmds = self.node_subst_list(node, "commands") self.add_commands("commands", cmds) |