diff options
Diffstat (limited to 'lib/chef_zero/endpoints/role_environments_endpoint.rb')
-rw-r--r-- | lib/chef_zero/endpoints/role_environments_endpoint.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/chef_zero/endpoints/role_environments_endpoint.rb b/lib/chef_zero/endpoints/role_environments_endpoint.rb index 625e13a..a408138 100644 --- a/lib/chef_zero/endpoints/role_environments_endpoint.rb +++ b/lib/chef_zero/endpoints/role_environments_endpoint.rb @@ -6,7 +6,7 @@ module ChefZero # /roles/NAME/environments class RoleEnvironmentsEndpoint < RestBase def get(request) - role = FFI_Yajl::Parser.parse(get_data(request, request.rest_path[0..3])) + role = FFI_Yajl::Parser.parse(get_data(request, request.rest_path[0..3]), :create_additions => false) json_response(200, [ "_default" ] + (role["env_run_lists"].keys || [])) end end |