File tree Expand file tree Collapse file tree 1 file changed +2
-1
lines changed
lib/fog/vsphere/requests/compute Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -173,6 +173,7 @@ def vm_clone(options = {})
173173 device_change . concat ( modify_template_volumes_specs ( vm_mob_ref , options [ 'volumes' ] ) )
174174 device_change . concat ( add_new_volumes_specs ( vm_mob_ref , options [ 'volumes' ] ) ) unless options [ 'storage_pod' ]
175175 end
176+ device_change << create_virtual_tpm if options [ 'virtual_tpm' ] . present?
176177 virtual_machine_config_spec . deviceChange = device_change if device_change . any?
177178 # Options['numCPUs'] or Options['memoryMB']
178179 # Build up the specification for Hardware, for more details see ____________
@@ -216,7 +217,7 @@ def vm_clone(options = {})
216217 RbVmomi ::VIM ::VirtualMachineBootOptionsBootableFloppyDevice . new
217218 end
218219 end
219- virtual_machine_config_spec . bootOptions = { bootOrder : boot_order }
220+ virtual_machine_config_spec . bootOptions = { bootOrder : boot_order , efiSecureBootEnabled : options [ "secure_boot" ] || false }
220221 end
221222 # Options['customization_spec']
222223 # OLD Options still supported
You can’t perform that action at this time.
0 commit comments