openstack 3.3.6 → 3.3.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 65d048a9a5bd186c9c34af63106fc7acb97cdb8b
4
- data.tar.gz: f2e50d2ebf417413e7fc00b2278cb1b4b1a56e6f
3
+ metadata.gz: 540cb0a7f5edb4d21fd1b400971543ac928d5808
4
+ data.tar.gz: a67b1321afa79c66fba6108cfece5608608a8fb2
5
5
  SHA512:
6
- metadata.gz: b527e1c504082db4b3b2fce8c3e7753557913ea00ca6f0eed63314de2b39cf1ce0cd452688a96ce5e354588fc175a0d0f7f883bafac66c2f2b7857e2abb552be
7
- data.tar.gz: 2ce19b05b5653196e22acb34706b47dceccd0ab5d3da3de36d2dfcdf0f71bc07247b65444d2664334822160945ddba922591634dedd4c47627aeb44625fd7634
6
+ metadata.gz: 4aeb0f89c1138fb35db9a2e087af75a234870811f0039abcfb5ab78ed1f19c1ca1cca02673e96e8f2c9e60b25fbbe45c439ea1b96f30b0f248502cf46edf4e8d
7
+ data.tar.gz: aa375b8fca3bf8e40bb01a576c651c15153bab29b043abcebd7d1debb47260a3640bc3265085d104daf6e2d45df7f13641d1811ed7d9b86f5be0267c167d370c
data/VERSION CHANGED
@@ -1 +1 @@
1
- 3.3.6
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
- volume = OpenStack::Volume::Volume.new(self, volume_info)
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
- response = @connection.req("GET", "/#{@volume_path}")
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
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: openstack
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.3.6
4
+ version: 3.3.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Dan Prince