bosh_vsphere_cpi 1.2787.0 → 1.2788.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -528,10 +528,9 @@ module VSphereCloud
528
528
  end
529
529
 
530
530
  devices = @cloud_searcher.get_property(vm, Vim::VirtualMachine, 'config.hardware.device', ensure_all: true)
531
- vmdk_path = "#{disk.path}.vmdk"
532
531
  virtual_disk =
533
532
  devices.find do |device|
534
- device.kind_of?(Vim::Vm::Device::VirtualDisk) && device.backing.file_name == vmdk_path
533
+ device.kind_of?(Vim::Vm::Device::VirtualDisk) && device.backing.file_name.end_with?("/#{disk_cid}.vmdk")
535
534
  end
536
535
  raise Bosh::Clouds::DiskNotAttached.new(true), "Disk (#{disk_cid}) is not attached to VM (#{vm_cid})" if virtual_disk.nil?
537
536
 
@@ -551,7 +550,7 @@ module VSphereCloud
551
550
  virtual_disk =
552
551
  devices.find do |device|
553
552
  device.kind_of?(Vim::Vm::Device::VirtualDisk) &&
554
- device.backing.file_name == vmdk_path
553
+ device.backing.file_name.end_with?("/#{disk_cid}.vmdk")
555
554
  end
556
555
  break if virtual_disk.nil?
557
556
  sleep(1.0)
@@ -1,7 +1,7 @@
1
1
  module Bosh
2
2
  module Clouds
3
3
  class VSphere
4
- VERSION = '1.2787.0'
4
+ VERSION = '1.2788.0'
5
5
  end
6
6
  end
7
7
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bosh_vsphere_cpi
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.2787.0
4
+ version: 1.2788.0
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -18,7 +18,7 @@ dependencies:
18
18
  requirements:
19
19
  - - ~>
20
20
  - !ruby/object:Gem::Version
21
- version: 1.2787.0
21
+ version: 1.2788.0
22
22
  type: :runtime
23
23
  prerelease: false
24
24
  version_requirements: !ruby/object:Gem::Requirement
@@ -26,7 +26,7 @@ dependencies:
26
26
  requirements:
27
27
  - - ~>
28
28
  - !ruby/object:Gem::Version
29
- version: 1.2787.0
29
+ version: 1.2788.0
30
30
  - !ruby/object:Gem::Dependency
31
31
  name: bosh_cpi
32
32
  requirement: !ruby/object:Gem::Requirement
@@ -34,7 +34,7 @@ dependencies:
34
34
  requirements:
35
35
  - - ~>
36
36
  - !ruby/object:Gem::Version
37
- version: 1.2787.0
37
+ version: 1.2788.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.2787.0
45
+ version: 1.2788.0
46
46
  - !ruby/object:Gem::Dependency
47
47
  name: membrane
48
48
  requirement: !ruby/object:Gem::Requirement
@@ -173,7 +173,7 @@ dependencies:
173
173
  version: 0.7.1
174
174
  description: ! 'BOSH VSphere CPI
175
175
 
176
- 82a886'
176
+ e5697a'
177
177
  email: support@cloudfoundry.com
178
178
  executables:
179
179
  - vsphere_cpi
@@ -261,7 +261,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
261
261
  version: '0'
262
262
  segments:
263
263
  - 0
264
- hash: -1893880555623592986
264
+ hash: -4602967079270507158
265
265
  requirements: []
266
266
  rubyforge_project:
267
267
  rubygems_version: 1.8.23