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

SPEC config: find spec_name if object has a spec keyword

parent c6946a5f
......@@ -449,7 +449,11 @@ class Generator(object):
def get_spec_object_name(self, session_name, config_name):
object_config = self.config.get_config(config_name)
object_name = object_config.get('spec_name', config_name)
if 'spec' in object_config:
spec_object_config = object_config['spec']
object_name = spec_object_config.get('spec_name', config_name)
object_name = object_config.get('spec_name', config_name)
return self.__spec_aliases[session_name].get(config_name, object_name)
def check_no_spec_alias(self, object_type, object_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