Include j2 files in plan creation

Closes-Bug: #1664892
Change-Id: I702b73ffd42bcc73c0378cf444c075bfdf01ebe3
This commit is contained in:
Jiri Tomasek 2017-02-15 10:18:04 +01:00
parent 4147127178
commit f9ee9d1d2e
2 changed files with 5 additions and 1 deletions

View File

@ -0,0 +1,4 @@
fixes:
- |
Fixes `bug 1664892 <https://launchpad.net/bugs/1664892>`__
Jinja2 partials are included in plan creation

View File

@ -41,7 +41,7 @@ class PlanFileInput extends React.Component {
reader.onload = (f => {
return e => {
if(file.name.match(/(\.yaml|\.json|\.pp|\.sh)$/)) {
if(file.name.match(/(\.yaml|\.json|\.pp|\.sh|\.j2)$/)) {
let obj = {
name: f.webkitRelativePath.replace(/^[^\/]*\//, ''),
content: e.target.result