Project

General

Profile

Actions

Feature #24297

open

Importing templates with prefix does not update references inside templates

Added by Ondřej Pražák almost 7 years ago. Updated almost 7 years ago.

Status:
New
Priority:
Normal
Assignee:
-
Target version:
-
Difficulty:
Triaged:
No
Fixed in Releases:
Found in Releases:

Description

Clonned from Github issue: https://github.com/theforeman/foreman_templates/issues/49

Steps to reproduce:

1) set up a template repo with 'my_snippet.erb' and 'my_template.erb' that uses the snippet (<%= snippet 'my_snippet' >)
2) import repo with non-empty prefix ('My prefix ')
3) imported templates will be named 'My prefix my_snippet' and 'My prefix my_template', but template content will still have <
= snippet 'my_snippet' %>, which will lead to using non-existing snippet or a completely different one.

It should be possible to update the names of used snippets in the template when importing with prefix. We should introduce setting that allows users to switch between old and new behavior.

Actions

Also available in: Atom PDF