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

Minor fix to inline help.

This commit is contained in:
Rupak Ganguly 2013-04-26 17:49:21 -04:00
parent b059145cb2
commit 6480a770c3
2 changed files with 9 additions and 2 deletions

View file

@ -45,7 +45,7 @@ module Fog
# * 'OS-EXT-STS:vm_state'<~String> - Extended vm state # * 'OS-EXT-STS:vm_state'<~String> - Extended vm state
def get_server_details(server_id) def get_server_details(server_id)
request( request(
:expects => 200, :expects => [200, 203],
:method => 'GET', :method => 'GET',
:path => "servers/#{server_id}" :path => "servers/#{server_id}"
) )

View file

@ -7,6 +7,13 @@ module Fog
# #
# ==== Parameters # ==== Parameters
# * options<~Hash>: filter options # * options<~Hash>: filter options
# * 'name'<~String> - Filters by the name of the server
# * 'image'<~String> - Filters by the UUId of the image
# * 'flavor'<~String> - Filters by the UUId of the flavor
# * 'status'<~String> - Filters by the status of the server
# * 'marker'<~String> - The ID of the last item in the previous list
# * 'limit'<~Integer> - Sets the page size
# * 'changes-since'<~DateTime> - Filters by the changes-since time. The list contains servers that have been deleted since the changes-since time.
# #
# ==== Returns # ==== Returns
# * response<~Excon::Response>: # * response<~Excon::Response>:
@ -17,7 +24,7 @@ module Fog
# * 'links'<~Array> - array of server links # * 'links'<~Array> - array of server links
def list_servers(options = {}) def list_servers(options = {})
request( request(
:expects => 200, :expects => [200, 203],
:method => 'GET', :method => 'GET',
:path => 'servers', :path => 'servers',
:query => options :query => options