mirror of
https://github.com/fog/fog.git
synced 2022-11-09 13:51:43 -05:00
parent
11591b3ed9
commit
e2ac439113
2 changed files with 2 additions and 6 deletions
|
@ -7,9 +7,7 @@ module Fog
|
||||||
:expects => [200],
|
:expects => [200],
|
||||||
:method => 'POST',
|
:method => 'POST',
|
||||||
:path => "tenants",
|
:path => "tenants",
|
||||||
:body => {
|
:body => Fog::JSON.encode({ 'tenant' => attributes })
|
||||||
'tenant' => attributes
|
|
||||||
}.to_json
|
|
||||||
)
|
)
|
||||||
end # def create_tenant
|
end # def create_tenant
|
||||||
end # class Real
|
end # class Real
|
||||||
|
|
|
@ -7,9 +7,7 @@ module Fog
|
||||||
:expects => [200],
|
:expects => [200],
|
||||||
:method => 'PUT',
|
:method => 'PUT',
|
||||||
:path => "tenants/#{id}",
|
:path => "tenants/#{id}",
|
||||||
:body => {
|
:body => Fog::JSON.encode({ 'tenant' => attributes })
|
||||||
'tenant' => attributes
|
|
||||||
}.to_json
|
|
||||||
)
|
)
|
||||||
end # def create_tenant
|
end # def create_tenant
|
||||||
end # class Real
|
end # class Real
|
||||||
|
|
Loading…
Add table
Reference in a new issue