summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarc Paradise <marc@getchef.com>2015-03-04 02:56:57 -0500
committertyler-ball <tyleraball@gmail.com>2015-07-10 10:24:40 -0700
commiteb7ee61cd9ed1ff25ed0d435ac5842f7b524be06 (patch)
treedb812540dd79d0484b6fbdfc19b485d3bedb20b2
parentad69f428b7ccf0728ecec4f5458f427503b987ce (diff)
downloadchef-zero-eb7ee61cd9ed1ff25ed0d435ac5842f7b524be06.tar.gz
use the supplied org_type in org creation
-rw-r--r--lib/chef_zero/endpoints/organizations_endpoint.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/chef_zero/endpoints/organizations_endpoint.rb b/lib/chef_zero/endpoints/organizations_endpoint.rb
index d774371..41bf03b 100644
--- a/lib/chef_zero/endpoints/organizations_endpoint.rb
+++ b/lib/chef_zero/endpoints/organizations_endpoint.rb
@@ -50,7 +50,7 @@ module ChefZero
json_response(201, {
"uri" => "#{build_uri(request.base_uri, org_path)}",
"name" => name,
- "org_type" => "Pleasure",
+ "org_type" => org["org_type"],
"full_name" => full_name,
"clientname" => validator_name,
"private_key" => private_key