Skip to content

Commit

Permalink
Create the VM target folder if it doesn't exist
Browse files Browse the repository at this point in the history
  • Loading branch information
Marno van der Molen committed Jul 14, 2014
1 parent a785a00 commit b8c6f99
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/vSphere/action/clone.rb
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ def get_vm_base_folder(dc, template, config)
if config.vm_base_path.nil?
template.parent
else
dc.vmFolder.traverse(config.vm_base_path, RbVmomi::VIM::Folder)
dc.vmFolder.traverse(config.vm_base_path, RbVmomi::VIM::Folder, create=true)
end
end
end
Expand Down

0 comments on commit b8c6f99

Please # to comment.