diff options
author | John Keiser <jkeiser@opscode.com> | 2014-08-20 20:45:14 -0700 |
---|---|---|
committer | John Keiser <jkeiser@opscode.com> | 2014-08-22 09:20:50 -0700 |
commit | 3372e864b4d705a4bbca3e52e7edea4656dd89ba (patch) | |
tree | c50891dd74b65979e114e2df921cbf24fb535f7f /lib/chef_zero/chef_data/default_creator.rb | |
parent | 9da161dbb67168da835c1a36263aac61b2512810 (diff) | |
download | chef-zero-3372e864b4d705a4bbca3e52e7edea4656dd89ba.tar.gz |
Get users endpoint passing oc-chef-pedant
Diffstat (limited to 'lib/chef_zero/chef_data/default_creator.rb')
-rw-r--r-- | lib/chef_zero/chef_data/default_creator.rb | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/lib/chef_zero/chef_data/default_creator.rb b/lib/chef_zero/chef_data/default_creator.rb index 555c520..0c82bf3 100644 --- a/lib/chef_zero/chef_data/default_creator.rb +++ b/lib/chef_zero/chef_data/default_creator.rb @@ -110,11 +110,7 @@ module ChefZero [ 'containers', 'users' ] when 'users' - result = superusers - data.list([ 'organizations' ]).each do |org| - result += data.list([ 'organizations', org, 'users' ]).uniq - end - result + superusers when 'organizations' if path.size == 1 |