kitchen-vcenter 2.12.0 → 2.12.2
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 +4 -4
- data/lib/kitchen-vcenter/version.rb +1 -1
- data/lib/support/clone_vm.rb +5 -2
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 197539c656c6c54769f90ceaeba5441fafeff55721f7c3dc894b64c67255e237
|
4
|
+
data.tar.gz: 0e5d4daa44c99b93d1684457d5e3a348240e21035b20641d2056cc5cb7b2209e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3c28a6177211909e3e9cd855cc9757f4ade60ff305391c4c1a7cce9dc6f0281d0854ac8fda28eb3287238044cac1034dd7658e1914c457304e15f79bd29ade3c
|
7
|
+
data.tar.gz: 24af4ef2451e91b5ad8843e8f36fc6478cdf7385f10a7588d716edb21c3e035b74f84721e678e8ff7629d1b89efa778fad15ff4281d2bd497b99bca9eb368c21
|
data/lib/support/clone_vm.rb
CHANGED
@@ -375,6 +375,10 @@ class Support
|
|
375
375
|
# Storage Controller and ID mapping
|
376
376
|
controller = vm.config.hardware.device.select { |device| device.is_a? RbVmomi::VIM::VirtualSCSIController }.first
|
377
377
|
|
378
|
+
# Move these variables outside the loop so they aren't overwritten
|
379
|
+
highest_id = vm.disks.map(&:unitNumber).max
|
380
|
+
next_id = highest_id
|
381
|
+
|
378
382
|
add_disks.each_with_index do |disk_config, idx|
|
379
383
|
# Default to Thin Provisioning and 10GB disk size
|
380
384
|
disk_config[:type] ||= :thin
|
@@ -405,8 +409,7 @@ class Support
|
|
405
409
|
|
406
410
|
disk_spec.device.controllerKey = controller.key
|
407
411
|
|
408
|
-
|
409
|
-
next_id = highest_id + idx + 1
|
412
|
+
next_id += 1
|
410
413
|
|
411
414
|
# Avoid the SCSI controller ID
|
412
415
|
next_id += 1 if next_id == controller.scsiCtlrUnitNumber
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: kitchen-vcenter
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.12.
|
4
|
+
version: 2.12.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Chef Software
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2025-02-26 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: net-ping
|
@@ -109,14 +109,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
109
109
|
requirements:
|
110
110
|
- - ">="
|
111
111
|
- !ruby/object:Gem::Version
|
112
|
-
version: '
|
112
|
+
version: '3.1'
|
113
113
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
114
114
|
requirements:
|
115
115
|
- - ">="
|
116
116
|
- !ruby/object:Gem::Version
|
117
117
|
version: '0'
|
118
118
|
requirements: []
|
119
|
-
rubygems_version: 3.
|
119
|
+
rubygems_version: 3.2.3
|
120
120
|
signing_key:
|
121
121
|
specification_version: 4
|
122
122
|
summary: Test Kitchen driver for VMware vCenter
|