Skip to content
Browse files

[openstack|compute] Added get server volumes request

  • Loading branch information...
1 parent 79c49d1 commit df49955cef0ad2cd4fecebd3e424b20941e187e5 @pmdeazeta pmdeazeta committed with Mar 29, 2012
Showing with 24 additions and 0 deletions.
  1. +1 −0 lib/fog/openstack/compute.rb
  2. +23 −0 lib/fog/openstack/requests/compute/get_server_volumes.rb
View
1 lib/fog/openstack/compute.rb
@@ -130,6 +130,7 @@ class OpenStack < Fog::Service
request :delete_volume
request :attach_volume
request :detach_volume
+ request :get_server_volumes
request :create_volume_snapshot
request :list_snapshots
View
23 lib/fog/openstack/requests/compute/get_server_volumes.rb
@@ -0,0 +1,23 @@
+module Fog
+ module Compute
+ class OpenStack
+ class Real
+
+ def get_server_volumes(server_id)
+
+ request(
+ :expects => 200,
+ :method => 'GET',
+ :path => "/servers/#{server_id}/os-volume_attachments"
+ )
+ end
+
+ end
+
+ class Mock
+
+ end
+
+ end
+ end
+end

0 comments on commit df49955

Please sign in to comment.
Something went wrong with that request. Please try again.