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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: c2d12d766e82a1faadbe212c6bd4b456f2f5d8b5020eea068e3baf03bfed784a
4
- data.tar.gz: 9c83dbf3aedac89dd590e6ca916aa88a66c8bf3fe3340e94c9e42de919c9cb98
3
+ metadata.gz: 6fde8da8e67f090b3268f7c130b48d8730fb7fc1fcd922579c66f1ee67f50b19
4
+ data.tar.gz: 3fc30e334b66725ab517afc440dbdcbe3804c0565d8ad6e90d396529d9249d03
5
5
  SHA512:
6
- metadata.gz: a7c125bd12412bf05a7bb3941bf911f84b3fffd5a75e029b4af16173551c8059c1ac2325fc75eded98705f284a82116616473ff49c86f0b56eb98131a2ada32a
7
- data.tar.gz: 83783358165788fa50e94953c1946f0ab86abb3d0d93bbca2d91932abbb1be003e5b6ad2ba8f74aa2108bbbf23d8da70664c74cc06578c04b4351687b4fb3b22
6
+ metadata.gz: 8a2c98ab7b82db9587b12cfc7bb06bd23a1346a9048cbf16bfec1d6e20b20ec0b9f39ee2a8912f92f7aec3c1a6e42caef3f37f9af6ddd6527468c572c08b76f0
7
+ data.tar.gz: c7569f04cade03956f13d637a6cebe77d5cefd97535c62b604b62c115c53cd423548f1379a94c96a7f1c74636f57b3f2d58fc26548b43d66580c6b757b7d53f0
@@ -347,7 +347,7 @@ module Fog
347
347
  end
348
348
 
349
349
  def is_uuid?(id)
350
- !(id =~ /[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}/).nil?
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
@@ -1,5 +1,5 @@
1
1
  module Fog
2
2
  module Vsphere
3
- VERSION = '3.7.0'.freeze
3
+ VERSION = '3.7.1'.freeze
4
4
  end
5
5
  end