charmed-kubernetes / pytest-operator

Apache License 2.0
7 stars 13 forks source link

render_charm: include is broken for nested paths #39

Open johnsca opened 2 years ago

johnsca commented 2 years ago

When using the include param to render_charm() with a path with several directory levels, to selectively apply templating to specific files, the parent directories have to be explicitly included as well or they will not be traversed down in the walk. Any directory which is a prefix of a path in include should be implicitly included.