diff options
author | John Keiser <jkeiser@opscode.com> | 2014-08-20 16:36:06 -0700 |
---|---|---|
committer | John Keiser <jkeiser@opscode.com> | 2014-08-22 09:20:50 -0700 |
commit | 9da161dbb67168da835c1a36263aac61b2512810 (patch) | |
tree | 96c34059384173b8f45cc9c973fa4f51eff31834 /lib/chef_zero/endpoints/organization_user_endpoint.rb | |
parent | f16071f7f666bd16991344505841be30a036d81b (diff) | |
download | chef-zero-9da161dbb67168da835c1a36263aac61b2512810.tar.gz |
Get users endpoint (mostly) up to oc-chef-pedant standards
Diffstat (limited to 'lib/chef_zero/endpoints/organization_user_endpoint.rb')
-rw-r--r-- | lib/chef_zero/endpoints/organization_user_endpoint.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/chef_zero/endpoints/organization_user_endpoint.rb b/lib/chef_zero/endpoints/organization_user_endpoint.rb index 1178141..368a068 100644 --- a/lib/chef_zero/endpoints/organization_user_endpoint.rb +++ b/lib/chef_zero/endpoints/organization_user_endpoint.rb @@ -10,14 +10,14 @@ module ChefZero get_data(request) # 404 if user is not in org user = get_data(request, [ 'users', username ]) user = JSON.parse(user, :create_additions => false) - json_response(200, DataNormalizer.normalize_user(user, username, ['username'])) + json_response(200, DataNormalizer.normalize_user(user, username, ['username'], server.options[:osc_compat], request.method)) end def delete(request) user = get_data(request) delete_data(request) user = JSON.parse(user, :create_additions => false) - json_response(200, DataNormalizer.normalize_user(user, request.rest_path[3], ['username'])) + json_response(200, DataNormalizer.normalize_user(user, request.rest_path[3], ['username'], server.options[:osc_compat])) end end end |