You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
we are apparently not using that feature too much, that is why we are asking the community about it.
Is it possible that mqttwarn can only load templates from the templates/ folder in current working directory? According to the implementation, it looks like it is - please correct me if I'm wrong.
amotl
changed the title
Templates can only be loaded from templates/ folder in working directory
Templates can only be loaded from templates/ folder in working directory?
Sep 22, 2022
It's never been reported as a problem, and I can't really imagine it is. I selected the name templates/ because it sounded reasonable, (and because that's the default in Ansible :-) ).
I selected the name templates/ because it sounded reasonable.
The name is perfectly reasonable. I was just wondering if the location of the folder should be made more flexible. When it never has been a problem, then I will back off.
I am just remembering the time when mqttwarn would mostly load an mqttwarn.ini file from the current working directory. In this scenario it would be perfectly fine to assume the templates/ folder is right side-by-side.
However, I think we made some adjustments to improve the location resolvement for the function file, for example. And I think we may want to apply the same logic to the location resolvement of the Jinja2 template folder.
I am not completely sure about current the state (will have to investigate), but just wanted to take a note about it while I came across the corresponding lines of code while writing more tests yesterday, and listen to what you think about it.
Hi there,
we are apparently not using that feature too much, that is why we are asking the community about it.
Is it possible that
mqttwarn
can only load templates from thetemplates/
folder in current working directory? According to the implementation, it looks like it is - please correct me if I'm wrong.https://github.com/jpmens/mqttwarn/blob/b8e61e224b3d6cbad6605870d6e518be7f815133/mqttwarn/core.py#L37-L45
Do you think it should be improved?
With kind regards,
Andreas.
The text was updated successfully, but these errors were encountered: