Skip to content

Commit

Permalink
Fix #2596: parse instead of from_json
Browse files Browse the repository at this point in the history
  • Loading branch information
John Keiser committed Dec 10, 2014
1 parent 45693bf commit e809bb4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@
## 12.0.2 (Unreleased)
* [Issue 2578](https://github.com/opscode/chef/issues/2578) Check that `installed` is not empty for `keg_only` formula in Homebrew provider.
* [Issue 2609](https://github.com/opscode/chef/issues/2609) Resolve the circular dependency between ProviderResolver and Resource.
* [Issue 2596](https://github.com/opscode/chef/issues/2596) Fix nodes not writing to disk

## 12.0.1

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ def write(file_contents)
end

def minimize(file_contents, entry)
object = Chef::JSONCompat.from_json(file_contents)
object = Chef::JSONCompat.parse(file_contents)
object = data_handler.normalize(object, entry)
object = data_handler.minimize(object, entry)
Chef::JSONCompat.to_json_pretty(object)
Expand Down

0 comments on commit e809bb4

Please sign in to comment.