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

Change expected status to be 204 instead of 200.

This commit is contained in:
Rupak Ganguly 2011-10-18 11:19:28 -04:00
parent c640d7d7e4
commit 2ba533cb0a

View file

@ -13,7 +13,7 @@ module Fog
def update_server(server_id, options = {})
request(
:body => MultiJson.encode({ 'server' => options }),
:expects => 204,
:expects => 200,
:method => 'PUT',
:path => "servers/#{server_id}.json"
)
@ -32,7 +32,7 @@ module Fog
if options['name']
server['name'] = options['name']
end
response.status = 204
response.status = 200
response
else
raise Fog::Compute::HP::NotFound