# File lib/fog/vsphere/requests/compute/vm_clone.rb, line 276 def vm_clone(options = {}) # Option handling TODO Needs better method of checking options = vm_clone_check_options(options) notfound = lambda { raise Fog::Compute::Vsphere::NotFound, "Could not find VM template" } list_virtual_machines.find(notfound) do |vm| vm[:name] == options['template_path'].split("/")[-1] end { 'vm_ref' => 'vm-123', 'task_ref' => 'task-1234', } end