Commit 333d9ec
committed
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 <bst@pengutronix.de>1 parent 9741924 commit 333d9ec
1 file changed
Lines changed: 2 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
21 | 21 | | |
22 | 22 | | |
23 | 23 | | |
24 | | - | |
25 | | - | |
26 | | - | |
| 24 | + | |
| 25 | + | |
27 | 26 | | |
28 | 27 | | |
29 | 28 | | |
| |||
0 commit comments