openstack 3.3.17 → 3.3.18

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 3118591896f4d8985f96e629ee024553efc6ccec
4
- data.tar.gz: 234766f3da131d005ddb7e156ab5fe731ec6a565
3
+ metadata.gz: 43b99278f1dde6d2c5c9bc125e87691e50aece05
4
+ data.tar.gz: 4fa98f1d6fb9f58a7f161490a2b215c5db26a32b
5
5
  SHA512:
6
- metadata.gz: e0b42b5d8d46fa3a6a68ba01bdccd891a0a7a07b9f333b0b1f8adeb5440e68529399b9751a52210324eed90f516dd09c6db52dd998f398ee9842f0899f6bb3df
7
- data.tar.gz: eec481dffdcbf4fe0e35155e098f0aedf0943bced420ccff75ac9886ad8937f995a5a0fe1603c659f8adbf8f548997f0b207eabc12e446e5e98ebf86fe2a6f82
6
+ metadata.gz: ec779836098027ff94c51393dd0281eee56dc892d57c3ae7c60dd6f03d0b957bf2283ad15c6a8e24fde5d50414d7ee68ce4c048362312c28f6df0ead9fc5f700
7
+ data.tar.gz: 4ffddb1a4c9900848c6116849648ac7fdc51c78147f817acfd7695a683da5dbe0061e78b5a81137e44e55b7797e7351e3266657af6d83a6294ad8ad55312b523
data/VERSION CHANGED
@@ -1 +1 @@
1
- 3.3.17
1
+ 3.3.18
@@ -50,9 +50,14 @@ module OpenStack
50
50
  true
51
51
  end
52
52
 
53
- def status!(status)
54
- data = JSON.generate({'os-reset_status' => {'status' => status}})
55
- response = @connection.req('POST', "/#{@volume_path}/#{@id}/action", {:data => data})
53
+ def status!(status, attach_status = nil)
54
+ data = {'status' => status}
55
+ if attach_status
56
+ data.merge!({'attach_status' => attach_status})
57
+ end
58
+ response = @connection.req('POST', "/#{@volume_path}/#{@id}/action", {
59
+ :data => JSON.generate({'os-reset_status' => data})
60
+ })
56
61
  OpenStack::Exception.raise_exception(response) unless response.code.match(/^20.$/)
57
62
  self.populate
58
63
  true
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.17
4
+ version: 3.3.18
5
5
  platform: ruby
6
6
  authors:
7
7
  - Dan Prince
@@ -138,7 +138,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
138
138
  version: '0'
139
139
  requirements: []
140
140
  rubyforge_project:
141
- rubygems_version: 2.6.14
141
+ rubygems_version: 2.6.14.1
142
142
  signing_key:
143
143
  specification_version: 4
144
144
  summary: OpenStack Ruby API