Skip to content

Commit

Permalink
fixed migration not working for inline images
Browse files Browse the repository at this point in the history
  • Loading branch information
bugy committed Feb 1, 2020
1 parent d2602cf commit d29a377
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/migrations/migrate.py
Original file line number Diff line number Diff line change
Expand Up @@ -259,8 +259,11 @@ def __introduce_access_config(context):
for i in range(len(output_files)):
output_file = output_files[i]

if not isinstance(output_file, str):
continue

for param_name in parameter_names:
output_file = re.sub('\$\$\$' + param_name, '${' + param_name + '}', output_file)
output_file = re.sub('\\$\\$\\$' + param_name, '${' + param_name + '}', output_file)

if output_file != output_files[i]:
output_files[i] = output_file
Expand Down

0 comments on commit d29a377

Please sign in to comment.