diff options
Diffstat (limited to 'lib/chef_zero/endpoints/environment_role_endpoint.rb')
-rw-r--r-- | lib/chef_zero/endpoints/environment_role_endpoint.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/chef_zero/endpoints/environment_role_endpoint.rb b/lib/chef_zero/endpoints/environment_role_endpoint.rb index 93c7578..2a87bb4 100644 --- a/lib/chef_zero/endpoints/environment_role_endpoint.rb +++ b/lib/chef_zero/endpoints/environment_role_endpoint.rb @@ -1,4 +1,4 @@ -require 'json' +require 'ffi_yajl' require 'chef_zero/endpoints/cookbooks_base' module ChefZero @@ -18,7 +18,7 @@ module ChefZero # Verify that the environment exists get_data(request, environment_path) - role = JSON.parse(get_data(request, role_path), :create_additions => false) + role = FFI_Yajl::Parser.parse(get_data(request, role_path), :create_additions => false) environment_name = environment_path[3] if environment_name == '_default' run_list = role['run_list'] |