bosh_openstack_cpi 1.2809.0 → 1.2810.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -830,8 +830,9 @@ module Bosh::OpenStackCloud
830
830
  def detach_volume(server, volume)
831
831
  @logger.info("Detaching volume `#{volume.id}' from `#{server.id}'...")
832
832
  volume_attachments = with_openstack { server.volume_attachments }
833
- if volume_attachments.find { |a| a['volumeId'] == volume.id }
834
- with_openstack { volume.detach(server.id, volume.id) }
833
+ attachment = volume_attachments.find { |a| a['volumeId'] == volume.id }
834
+ if attachment
835
+ with_openstack { volume.detach(server.id, attachment['id']) }
835
836
  wait_resource(volume, :available)
836
837
  else
837
838
  @logger.info("Disk `#{volume.id}' is not attached to server `#{server.id}'. Skipping.")
@@ -3,6 +3,6 @@
3
3
 
4
4
  module Bosh
5
5
  module OpenStackCloud
6
- VERSION = '1.2809.0'
6
+ VERSION = '1.2810.0'
7
7
  end
8
8
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bosh_openstack_cpi
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.2809.0
4
+ version: 1.2810.0
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2015-01-06 00:00:00.000000000 Z
12
+ date: 2015-01-08 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: fog
@@ -34,7 +34,7 @@ dependencies:
34
34
  requirements:
35
35
  - - ~>
36
36
  - !ruby/object:Gem::Version
37
- version: 1.2809.0
37
+ version: 1.2810.0
38
38
  type: :runtime
39
39
  prerelease: false
40
40
  version_requirements: !ruby/object:Gem::Requirement
@@ -42,7 +42,7 @@ dependencies:
42
42
  requirements:
43
43
  - - ~>
44
44
  - !ruby/object:Gem::Version
45
- version: 1.2809.0
45
+ version: 1.2810.0
46
46
  - !ruby/object:Gem::Dependency
47
47
  name: bosh_cpi
48
48
  requirement: !ruby/object:Gem::Requirement
@@ -50,7 +50,7 @@ dependencies:
50
50
  requirements:
51
51
  - - ~>
52
52
  - !ruby/object:Gem::Version
53
- version: 1.2809.0
53
+ version: 1.2810.0
54
54
  type: :runtime
55
55
  prerelease: false
56
56
  version_requirements: !ruby/object:Gem::Requirement
@@ -58,7 +58,7 @@ dependencies:
58
58
  requirements:
59
59
  - - ~>
60
60
  - !ruby/object:Gem::Version
61
- version: 1.2809.0
61
+ version: 1.2810.0
62
62
  - !ruby/object:Gem::Dependency
63
63
  name: bosh-registry
64
64
  requirement: !ruby/object:Gem::Requirement
@@ -66,7 +66,7 @@ dependencies:
66
66
  requirements:
67
67
  - - ~>
68
68
  - !ruby/object:Gem::Version
69
- version: 1.2809.0
69
+ version: 1.2810.0
70
70
  type: :runtime
71
71
  prerelease: false
72
72
  version_requirements: !ruby/object:Gem::Requirement
@@ -74,7 +74,7 @@ dependencies:
74
74
  requirements:
75
75
  - - ~>
76
76
  - !ruby/object:Gem::Version
77
- version: 1.2809.0
77
+ version: 1.2810.0
78
78
  - !ruby/object:Gem::Dependency
79
79
  name: httpclient
80
80
  requirement: !ruby/object:Gem::Requirement
@@ -125,7 +125,7 @@ dependencies:
125
125
  version: 1.1.0
126
126
  description: ! 'BOSH OpenStack CPI
127
127
 
128
- f3cadb'
128
+ 06dee6'
129
129
  email: support@cloudfoundry.com
130
130
  executables:
131
131
  - bosh_openstack_console
@@ -171,7 +171,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
171
171
  version: '0'
172
172
  segments:
173
173
  - 0
174
- hash: -2038579986166142215
174
+ hash: 1484416063387916473
175
175
  requirements: []
176
176
  rubyforge_project:
177
177
  rubygems_version: 1.8.23