Commit 4b5810bf authored by Millian Poquet's avatar Millian Poquet
Browse files

[exec1] bugfix: dependencies badly computed

parent 203c8f4d
......@@ -216,11 +216,13 @@ def check_variables(variables):
in_depth_values = find_all_values(variables[var_name])
logger.debug("in_depth_values of {}: {}".format(var_name, in_depth_values))
for potential_dependency_name in variables:
substr = '${' + potential_dependency_name
r = re.compile('.*\${' + potential_dependency_name + '[\[}].*')
for depth_value in in_depth_values:
if substr in depth_value:
if r.match(depth_value):
logger.debug('Dependencies : {}'.format(dependencies))
# Let's sort the variables by ascending number of dependencies
ordered = [(len(dependencies[var_name]), var_name, dependencies[var_name]) for var_name in dependencies]
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