fog-vsphere 3.7.0 → 3.7.1
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/fog/vsphere/compute.rb +1 -1
- data/lib/fog/vsphere/requests/compute/vm_clone.rb +2 -1
- data/lib/fog/vsphere/version.rb +1 -1
- data/tests/fixtures/vcr_cassettes/6_7/get_template.yml +7750 -50
- data/tests/fixtures/vcr_cassettes/6_7/get_virtual_machine.yml +7925 -44
- data/tests/requests/compute/get_template_tests.rb +2 -2
- data/tests/requests/compute/get_virtual_machine_tests.rb +2 -2
- data/tests/test_helper.rb +3 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 6fde8da8e67f090b3268f7c130b48d8730fb7fc1fcd922579c66f1ee67f50b19
|
4
|
+
data.tar.gz: 3fc30e334b66725ab517afc440dbdcbe3804c0565d8ad6e90d396529d9249d03
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8a2c98ab7b82db9587b12cfc7bb06bd23a1346a9048cbf16bfec1d6e20b20ec0b9f39ee2a8912f92f7aec3c1a6e42caef3f37f9af6ddd6527468c572c08b76f0
|
7
|
+
data.tar.gz: c7569f04cade03956f13d637a6cebe77d5cefd97535c62b604b62c115c53cd423548f1379a94c96a7f1c74636f57b3f2d58fc26548b43d66580c6b757b7d53f0
|
data/lib/fog/vsphere/compute.rb
CHANGED
@@ -347,7 +347,7 @@ module Fog
|
|
347
347
|
end
|
348
348
|
|
349
349
|
def is_uuid?(id)
|
350
|
-
|
350
|
+
id.is_a?(String) && /[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}/.match?(id)
|
351
351
|
end
|
352
352
|
end
|
353
353
|
|
@@ -173,6 +173,7 @@ module Fog
|
|
173
173
|
device_change.concat(modify_template_volumes_specs(vm_mob_ref, options['volumes']))
|
174
174
|
device_change.concat(add_new_volumes_specs(vm_mob_ref, options['volumes'])) unless options['storage_pod']
|
175
175
|
end
|
176
|
+
device_change << create_virtual_tpm if options['virtual_tpm'].present?
|
176
177
|
virtual_machine_config_spec.deviceChange = device_change if device_change.any?
|
177
178
|
# Options['numCPUs'] or Options['memoryMB']
|
178
179
|
# Build up the specification for Hardware, for more details see ____________
|
@@ -216,7 +217,7 @@ module Fog
|
|
216
217
|
RbVmomi::VIM::VirtualMachineBootOptionsBootableFloppyDevice.new
|
217
218
|
end
|
218
219
|
end
|
219
|
-
virtual_machine_config_spec.bootOptions = { bootOrder: boot_order }
|
220
|
+
virtual_machine_config_spec.bootOptions = { bootOrder: boot_order, efiSecureBootEnabled: options["secure_boot"] || false }
|
220
221
|
end
|
221
222
|
# Options['customization_spec']
|
222
223
|
# OLD Options still supported
|
data/lib/fog/vsphere/version.rb
CHANGED