Skip to content

Commit

Permalink
Allow for yaml aliases to be loaded using YAML.safe_load
Browse files Browse the repository at this point in the history
  • Loading branch information
jmreid committed Jul 9, 2019
1 parent cee469d commit 9d70a45
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
## next

*Bug Fixes*
- Re-enable support for YAML aliases when using YAML.safe_load [#510](https://github.com/Shopify/kubernetes-deploy/pull/510)

## 0.26.5

*Bug Fixes*
Expand Down
2 changes: 1 addition & 1 deletion lib/kubernetes-deploy/bindings_parser.rb
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ def parse_file(string)
when '.json'
bindings = parse_json(File.read(file_path))
when '.yaml', '.yml'
bindings = YAML.safe_load(File.read(file_path))
bindings = YAML.safe_load(File.read(file_path), [], [], true, file_path)
else
raise ArgumentError, "Supplied file does not appear to be JSON or YAML"
end
Expand Down

0 comments on commit 9d70a45

Please sign in to comment.