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:
parent
c640d7d7e4
commit
2ba533cb0a
1 changed files with 2 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue