Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

remote/config: simplify ResourceConfig template loading #1455

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

Bastian-Krause
Copy link
Member

Description
ResourceConfig passes a template loader with the directory name of the resource (exporter) config to jinja2.Environment(). Instead of using the Environment's loader to load the actual config, the config file is opened and read from manually and its content is then passed to jinja2.Environment.from_string().

Change that by using the designated jinja2.Environment.get_template() method to load the config.

Checklist

  • PR has been tested

ResourceConfig passes a template loader with the directory name of the
resource (exporter) config to jinja2.Environment(). Instead of using
the Environment's loader to load the actual config, the config file is
opened and read from manually and its content is then passed to
jinja2.Environment.from_string().

Change that by using the designated jinja2.Environment.get_template()
method to load the config.

Signed-off-by: Bastian Krause <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant