Evaluate variables on tf_definitions if context is not created
@@ -78,13 +78,12 @@ class Runner(BaseRunner):
def check_tf_definition(self, report, root_folder, runner_filter, collect_skip_comments=True, external_definitions_context=None):
parser_registry.reset_definitions_context()
- logging.debug('Evaluating string booleans')
- self.evaluate_string_booleans()
- logging.debug('Evaluated string booleans')
if external_definitions_context:
definitions_context = external_definitions_context
else:
- logging.debug('Creating definitions context')
+ logging.debug('Evaluating string booleans')
+ self.evaluate_string_booleans()
+ logging.debug('Evaluated string booleans. Creating definitions context')
definitions_context = {}
for definition in self.tf_definitions.items():
definitions_context = parser_registry.enrich_definitions_context(definition, collect_skip_comments)
