summaryrefslogtreecommitdiff
path: root/lib/chef_zero/endpoints/organization_endpoint.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/chef_zero/endpoints/organization_endpoint.rb')
-rw-r--r--lib/chef_zero/endpoints/organization_endpoint.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/chef_zero/endpoints/organization_endpoint.rb b/lib/chef_zero/endpoints/organization_endpoint.rb
index 55bd686..4cf9e12 100644
--- a/lib/chef_zero/endpoints/organization_endpoint.rb
+++ b/lib/chef_zero/endpoints/organization_endpoint.rb
@@ -16,7 +16,7 @@ module ChefZero
new_org.each do |key, value|
org[key] = value
end
- save_org = FFI_Yajl::Encoder.encode(org, :pretty => true)
+ save_org = FFI_Yajl::Encoder.encode(org, pretty: true)
if new_org["name"] != request.rest_path[-1]
# This is a rename
return error(400, "Cannot rename org #{request.rest_path[-1]} to #{new_org['name']}: rename not supported for orgs")
@@ -39,7 +39,7 @@ module ChefZero
def populate_defaults(request, response_json)
org = FFI_Yajl::Parser.parse(response_json)
org = ChefData::DataNormalizer.normalize_organization(org, request.rest_path[1])
- FFI_Yajl::Encoder.encode(org, :pretty => true)
+ FFI_Yajl::Encoder.encode(org, pretty: true)
end
end
end