Skip to content

Commit

Permalink
[openstack|compute] Update List Security Groups to list those assigne…
Browse files Browse the repository at this point in the history
…d to a server

Signed-off-by: Nelvin Driz <[email protected]>
  • Loading branch information
Keoven committed Apr 30, 2012
1 parent 530d860 commit eaa96b3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/fog/openstack/requests/compute/list_security_groups.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,11 @@ module Compute
class OpenStack
class Real

def list_security_groups
def list_security_groups(server_id = nil)
request(
:expects => [200],
:method => 'GET',
:path => 'os-security-groups.json'
:path => "#{%Q|servers/#{server_id}/| if server_id }os-security-groups.json"
)
end

Expand Down

0 comments on commit eaa96b3

Please sign in to comment.