summaryrefslogtreecommitdiff
path: root/buildstream
diff options
context:
space:
mode:
authorAngelos Evripiotis <jevripiotis@bloomberg.net>2017-12-12 17:05:17 +0000
committerJürg Billeter <j@bitron.ch>2017-12-13 10:34:45 +0100
commit11f8254c3f5f01b8d2f0e4f60142eb8a7cb42afd (patch)
tree3e66505eb6c99b2b6720b002b825c96890ee6b2f /buildstream
parentbc90bc5d6005cc5798899c84816ffe47f939b621 (diff)
downloadbuildstream-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.py4
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)