summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLars Wirzenius <liw@liw.fi>2017-03-29 13:13:33 +0300
committerLars Wirzenius <liw@liw.fi>2017-03-29 13:13:33 +0300
commitca865f806f0040272533167f9152861e7422faf9 (patch)
treeb928da0868a8d55010b49794fc7e47671b4ab581
parent981dda39aa96bbc898b2b7bf04405f515141f664 (diff)
downloadvmdb2-ca865f806f0040272533167f9152861e7422faf9.tar.gz
Check early that we have runners for all steps
-rw-r--r--vmdb/app.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/vmdb/app.py b/vmdb/app.py
index 534cfff..0633825 100644
--- a/vmdb/app.py
+++ b/vmdb/app.py
@@ -42,6 +42,10 @@ class Vmdb2(cliapp.Application):
spec = self.load_spec_file(args[0])
steps = spec['steps']
+ # Check that we have step runners for each step
+ for step in steps:
+ self.step_runners.find(step)
+
state = vmdb.State()
steps_taken, core_meltdown = self.run_steps(steps, state)
self.run_teardowns(steps_taken, state)