openstack 3.3.6 → 3.3.7
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/VERSION +1 -1
- data/lib/openstack/volume/connection.rb +4 -3
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 540cb0a7f5edb4d21fd1b400971543ac928d5808
|
4
|
+
data.tar.gz: a67b1321afa79c66fba6108cfece5608608a8fb2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4aeb0f89c1138fb35db9a2e087af75a234870811f0039abcfb5ab78ed1f19c1ca1cca02673e96e8f2c9e60b25fbbe45c439ea1b96f30b0f248502cf46edf4e8d
|
7
|
+
data.tar.gz: aa375b8fca3bf8e40bb01a576c651c15153bab29b043abcebd7d1debb47260a3640bc3265085d104daf6e2d45df7f13641d1811ed7d9b86f5be0267c167d370c
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
3.3.
|
1
|
+
3.3.7
|
@@ -31,13 +31,14 @@ module Volume
|
|
31
31
|
response = @connection.csreq("POST",@connection.service_host,"#{@connection.service_path}/#{@volume_path}",@connection.service_port,@connection.service_scheme,{'content-type' => 'application/json'},data)
|
32
32
|
OpenStack::Exception.raise_exception(response) unless response.code.match(/^20.$/)
|
33
33
|
volume_info = JSON.parse(response.body)["volume"]
|
34
|
-
|
34
|
+
OpenStack::Volume::Volume.new(self, volume_info)
|
35
35
|
end
|
36
36
|
|
37
37
|
#no options documented in API at Nov 2012
|
38
38
|
#(e.g. like limit/marker as used in Nova for servers)
|
39
|
-
def list_volumes
|
40
|
-
|
39
|
+
def list_volumes(options = {})
|
40
|
+
path = options.empty? ? "/#{@volume_path}/detail" : "/#{@volume_path}/detail?#{options.to_query}"
|
41
|
+
response = @connection.req("GET", path)
|
41
42
|
volumes_hash = JSON.parse(response.body)["volumes"]
|
42
43
|
volumes_hash.inject([]){|res, current| res << OpenStack::Volume::Volume.new(self, current); res}
|
43
44
|
end
|