Include j2 files in plan creation
Closes-Bug: #1664892 Change-Id: I702b73ffd42bcc73c0378cf444c075bfdf01ebe3
This commit is contained in:
parent
4147127178
commit
f9ee9d1d2e
|
@ -0,0 +1,4 @@
|
|||
fixes:
|
||||
- |
|
||||
Fixes `bug 1664892 <https://launchpad.net/bugs/1664892>`__
|
||||
Jinja2 partials are included in plan creation
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue