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

Commits on Jul 30, 2024

  1. remote/config: simplify ResourceConfig template loading

    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]>
    Bastian-Krause committed Jul 30, 2024
    Configuration menu
    Copy the full SHA
    e4bc5a5 View commit details
    Browse the repository at this point in the history