Commit 91b5ef2b authored by Jose Tiago Macara Coutinho's avatar Jose Tiago Macara Coutinho Committed by blissadm_ID31@bibhelm
Browse files

SPEC config: make it work even when no config-objects are defined

parent 3a492104
......@@ -422,7 +422,7 @@ class Generator(object):
aliases_list = session_config.get('spec-aliases') or []
spec_aliases = OrderedDict([s.split('=')[::-1] for s in aliases_list])
self.__spec_aliases[session_name] = spec_aliases
for config_name in session_config['config-objects']:
for config_name in session_config.get('config-objects', []):
self.add_object(session_name, config_name)
def add_object(self, session_name, config_name):
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment