Skip to content

Commit

Permalink
Backport the JSON parsing fix to the 1.6 series
Browse files Browse the repository at this point in the history
  • Loading branch information
sethvargo committed Feb 10, 2014
1 parent f758030 commit d759b0a
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 @@
# 1.6.3
- Backport JSON file parsing

# 1.5.5

- Fix issue with - in term (name:a-b)
Expand Down
4 changes: 2 additions & 2 deletions lib/chef_zero/cookbook_data.rb
Original file line number Diff line number Diff line change
Expand Up @@ -73,8 +73,8 @@ def initialize(cookbook)
end
end

def from_json(filepath)
self.merge!(JSON.parse(File.read(filepath)))
def from_json(json)
self.merge!(JSON.parse(json))
end

private
Expand Down

0 comments on commit d759b0a

Please sign in to comment.