diff options
Diffstat (limited to 'yardstick/cmd')
-rwxr-xr-x | yardstick/cmd/commands/task.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/yardstick/cmd/commands/task.py b/yardstick/cmd/commands/task.py index a56824aac..fbbca29ad 100755 --- a/yardstick/cmd/commands/task.py +++ b/yardstick/cmd/commands/task.py @@ -233,8 +233,10 @@ class TaskParser(object): # TODO: support hybrid context type if "context" in cfg: context_cfgs = [cfg["context"]] - else: + elif "contexts" in cfg: context_cfgs = cfg["contexts"] + else: + context_cfgs = [{"type": "Dummy"}] for cfg_attrs in context_cfgs: context_type = cfg_attrs.get("type", "Heat") |