1
0
Fork 0
mirror of https://github.com/fog/fog.git synced 2022-11-09 13:51:43 -05:00

[openstack|identity] replace to_json with Fog::JSON.encode

Refs #1338
This commit is contained in:
Sergio Rubio 2012-12-07 13:16:08 +01:00
parent 11591b3ed9
commit e2ac439113
2 changed files with 2 additions and 6 deletions

View file

@ -7,9 +7,7 @@ module Fog
:expects => [200],
:method => 'POST',
:path => "tenants",
:body => {
'tenant' => attributes
}.to_json
:body => Fog::JSON.encode({ 'tenant' => attributes })
)
end # def create_tenant
end # class Real

View file

@ -7,9 +7,7 @@ module Fog
:expects => [200],
:method => 'PUT',
:path => "tenants/#{id}",
:body => {
'tenant' => attributes
}.to_json
:body => Fog::JSON.encode({ 'tenant' => attributes })
)
end # def create_tenant
end # class Real