Skip to content

Commit

Permalink
Allow using .yaml output file extension along with .yml and start rel…
Browse files Browse the repository at this point in the history
…ease-v0.28.0-rc.1
  • Loading branch information
uberspot committed Jun 10, 2020
1 parent 403e558 commit d553ae8
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
## 0.28.0-rc.1:
- Allow using .yaml output file extension along with .yml (#525)

## 0.28.0-rc.0:
- Fix embedded refs encoding value (#523)
- Add new Helm dependency input type (#520)
Expand Down
4 changes: 2 additions & 2 deletions kapitan/inputs/jsonnet.py
Original file line number Diff line number Diff line change
Expand Up @@ -74,8 +74,8 @@ def _search_imports(cwd, imp):
indent=indent,
) as fp:
fp.write_json(item_value)
elif output == "yaml":
file_path = os.path.join(compile_path, "%s.%s" % (item_key, "yml"))
elif output in ["yml", "yaml"]:
file_path = os.path.join(compile_path, "%s.%s" % (item_key, output))
with CompiledFile(
file_path,
self.ref_controller,
Expand Down

0 comments on commit d553ae8

Please sign in to comment.